summaryrefslogtreecommitdiff
path: root/lib/workqueue.h
diff options
context:
space:
mode:
authorPaul Jakma <paul@jakma.org>2015-09-15 16:16:42 +0100
committerDaniel Walton <dwalton@cumulusnetworks.com>2016-06-03 20:39:22 +0000
commit86582682c97820d8cebfe4a6c4b990d308010eec (patch)
tree770f205bdb5d71c92983dfd28b2aa148046af568 /lib/workqueue.h
parent3ac45df16437e27d26cf1891f9cac640a587d6f9 (diff)
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 7d9a877d10..19b44041d7 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;