diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-03-06 17:03:00 +0100 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-03-06 17:03:00 +0100 |
commit | 985e36a609ac51d8e39e252e796097c12c33adb5 (patch) | |
tree | 3770c6845a5e3d9e52f61d05ed1758b3369f4a54 /lib/frr_pthread.c | |
parent | lib: some frr_pthread fixes (diff) | |
download | frr-985e36a609ac51d8e39e252e796097c12c33adb5.tar.xz frr-985e36a609ac51d8e39e252e796097c12c33adb5.zip |
lib: frr_pthread.c style
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/frr_pthread.c')
-rw-r--r-- | lib/frr_pthread.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/frr_pthread.c b/lib/frr_pthread.c index ba6d89429..6fafc8db3 100644 --- a/lib/frr_pthread.c +++ b/lib/frr_pthread.c @@ -229,7 +229,7 @@ void frr_pthread_stop_all() pthread_mutex_unlock(&frr_pthread_hash_mtx); } -uint32_t frr_pthread_get_id() +uint32_t frr_pthread_get_id(void) { _Atomic uint32_t nxid; nxid = atomic_fetch_add_explicit(&next_id, 1, memory_order_seq_cst); @@ -259,6 +259,7 @@ static int fpt_dummy(struct thread *thread) static int fpt_finish(struct thread *thread) { struct frr_pthread *fpt = THREAD_ARG(thread); + atomic_store_explicit(&fpt->running, false, memory_order_relaxed); return 0; } |