]> git.ipfire.org Git - thirdparty/asterisk.git/commit
threadpool: Fix potential data race. 00/2900/2
authorCorey Farrell <git@cfware.com>
Fri, 12 Feb 2016 15:59:44 +0000 (10:59 -0500)
committerCorey Farrell <git@cfware.com>
Tue, 24 May 2016 20:30:18 +0000 (16:30 -0400)
commita42bea3314fab798b3ef6f73c6a47d925621127c
tree42a40bb10a49dc83ad64cd8bad764b76c50abdf5
parent87fe6b16227c49a1d07186ced49f1ea37e9af333
threadpool: Fix potential data race.

worker_start checked for ZOMBIE status without holding a lock.  All
other read/write of worker status are performed with a lock, so this
check should do the same.

ASTERISK-25777 #close

Change-Id: I5e33685a5c26fdb300851989a3b82be8c4e03781
main/threadpool.c