lib/workqueue: Add trivial work_queue_is_scheduled helper
diff --git a/lib/workqueue.c b/lib/workqueue.c
index e09d009..9fc8931 100644
--- a/lib/workqueue.c
+++ b/lib/workqueue.c
@@ -107,6 +107,12 @@
   return;
 }
 
+bool
+work_queue_is_scheduled (struct work_queue *wq)
+{
+  return (wq->thread != NULL);
+}
+
 static int
 work_queue_schedule (struct work_queue *wq, unsigned int delay)
 {