From 13c2a3db503fde67f647fa58fd4e1077517ebb5c Mon Sep 17 00:00:00 2001 From: Paul Jakma Date: Tue, 15 Sep 2015 16:16:42 +0100 Subject: lib/workqueue: Add trivial work_queue_is_scheduled helper --- lib/workqueue.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/workqueue.h') diff --git a/lib/workqueue.h b/lib/workqueue.h index f59499a0..5ad25893 100644 --- a/lib/workqueue.h +++ b/lib/workqueue.h @@ -119,6 +119,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; -- cgit v1.2.3