]> git.ipfire.org Git - thirdparty/asterisk.git/commit
taskprocessor: Prevent race creating new taskprocessor.
authorCorey Farrell <git@cfware.com>
Mon, 12 Nov 2018 18:23:34 +0000 (13:23 -0500)
committerCorey Farrell <git@cfware.com>
Fri, 16 Nov 2018 13:55:31 +0000 (08:55 -0500)
commit9abd5e10044d2e0ace6fed3950b622a8e6654fd7
tree603de4633c15a057a944e0461b5670d375779a41
parentfc82312aab06c0844c813d319a0b7a4abd8cec4a
taskprocessor: Prevent race creating new taskprocessor.

Task processors are retrieved using a 'get or create' pattern.  The
singleton container was unlocked between the get and create steps so
it's possible that two threads could create task processors with the
same name at the same time.

Change-Id: Id64fae94a6a1e940ddf38fde622dcd4391635382
main/taskprocessor.c