]> 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:52 +0000 (08:55 -0500)
commit699dfa940160bdd917f84fc9aa7e4a0dffa8eae4
treef70610b466d2ede828a117fdccb5c91c48d299f4
parent6e1471c0b29970f7dce23b12fcaefa4f66e95bf6
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