summaryrefslogtreecommitdiffstats
path: root/lib/workqueue.h
diff options
context:
space:
mode:
authorPaul Jakma <paul@jakma.org>2015-09-15 17:16:42 +0200
committerDaniel Walton <dwalton@cumulusnetworks.com>2016-06-03 22:39:22 +0200
commit86582682c97820d8cebfe4a6c4b990d308010eec (patch)
tree770f205bdb5d71c92983dfd28b2aa148046af568 /lib/workqueue.h
parenttests: add testcli reference in/out & do DejaGNU (diff)
downloadfrr-86582682c97820d8cebfe4a6c4b990d308010eec.tar.xz
frr-86582682c97820d8cebfe4a6c4b990d308010eec.zip
lib/workqueue: Add trivial work_queue_is_scheduled helper
(cherry picked from commit 13c2a3db503fde67f647fa58fd4e1077517ebb5c)
Diffstat (limited to 'lib/workqueue.h')
-rw-r--r--lib/workqueue.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/workqueue.h b/lib/workqueue.h
index 7d9a877d1..19b44041d 100644
--- a/lib/workqueue.h
+++ b/lib/workqueue.h
@@ -122,6 +122,8 @@ extern void work_queue_plug (struct work_queue *wq);
/* unplug the queue, allow it to be drained again */
extern void work_queue_unplug (struct work_queue *wq);
+bool work_queue_is_scheduled (struct work_queue *);
+
/* Helpers, exported for thread.c and command.c */
extern int work_queue_run (struct thread *);
extern struct cmd_element show_work_queues_cmd;