]> git.puffer.fish Git - matthieu/frr.git/commit
lib: additional thread.c MT-safety work
authorQuentin Young <qlyoung@cumulusnetworks.com>
Mon, 17 Apr 2017 18:33:58 +0000 (18:33 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Fri, 28 Apr 2017 22:43:37 +0000 (22:43 +0000)
commit2c70efaed19379be49457069fc033d322394e29d
tree44326ffcb4dff4c0c086c6d54fb9158f3934e9f3
parent1189d95fcab50132623cb8f8c25f78ed68ec36e2
lib: additional thread.c MT-safety work

Fixes a few insufficient critical sections. Adds back locking for
thread_cancel(), since while thread_cancel() is only safe to call from
the pthread which owns the thread master due to races involving
thread_fetch() modifying thread master's ready queue, we still need
mutual exclusion here for all of the other public thread.c functions to
maintain their MT-safety.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
lib/thread.c