summaryrefslogtreecommitdiffstats
path: root/lib/frr_pthread.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-01-06 17:48:11 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-01-06 20:08:30 +0100
commitb2140cb7c8620d51f55942d349612129f51d6552 (patch)
tree6ab7884dd6ee7435dfcc07985e7de4e0c3a77e4d /lib/frr_pthread.h
parentMerge pull request #1595 from dwiesner/pmsi-tunnel (diff)
downloadfrr-b2140cb7c8620d51f55942d349612129f51d6552.tar.xz
frr-b2140cb7c8620d51f55942d349612129f51d6552.zip
lib: Add pthread_yield
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/frr_pthread.h')
-rw-r--r--lib/frr_pthread.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/frr_pthread.h b/lib/frr_pthread.h
index 9dee5fcca..f6000340a 100644
--- a/lib/frr_pthread.h
+++ b/lib/frr_pthread.h
@@ -130,6 +130,9 @@ int frr_pthread_stop(unsigned int id, void **result);
/* Stops all frr_pthread's. */
void frr_pthread_stop_all(void);
+/* Yields the current thread of execution */
+void frr_pthread_yield(void);
+
/* Returns a unique identifier for use with frr_pthread_new().
*
* Internally, this is an integer that increments after each call to this