]> git.puffer.fish Git - matthieu/frr.git/commit
lib: make thread.c pthread-safe
authorQuentin Young <qlyoung@cumulusnetworks.com>
Fri, 3 Mar 2017 19:01:49 +0000 (19:01 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Fri, 28 Apr 2017 22:43:36 +0000 (22:43 +0000)
commit1189d95fcab50132623cb8f8c25f78ed68ec36e2
tree9296aafc071ed7e116d1a1cdbba6dec1f0e0cf4d
parented8ba2e92048e4164fa91e70aa3ed5e31f85bba1
lib: make thread.c pthread-safe

This change introduces synchronization mechanisms to thread.c in order
to allow safe concurrent use.

Thread.c should now be threadstafe with respect to:
* struct thread
* struct thread_master

Calls into thread.c for operations upon data of this type should not
require external synchronization.

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