]> git.puffer.fish Git - mirror/frr.git/commit
lib: return thread pointer from thread_add*
authorQuentin Young <qlyoung@cumulusnetworks.com>
Tue, 16 May 2017 15:46:41 +0000 (15:46 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Tue, 16 May 2017 15:59:51 +0000 (15:59 +0000)
commit56a94b366832f022db1f6dbd403dbdd82ac6eee9
tree8e33f84676e1e4cb2cb89321d1cf038bee465705
parentc5761c2b5bcb36d4c952a9e2fa3717f0d70fc011
lib: return thread pointer from thread_add*

Allow some more flexibility in case callers wish to manage their own
thread pointers and don't require or don't want the thread to keep a
back reference to its holding pointer.

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