Update call-rcu.h and defer.h comments and include guards
[urcu.git] / src / workqueue.c
index 0b1a9eae41f91ba5bad8dc7e43db2731707d8854..14957a0d3910aa83740d4e22b5420aa48658cf84 100644 (file)
@@ -244,11 +244,12 @@ static void *workqueue_thread(void *arg)
                                 * urcu_work list.
                                 */
                                cmm_smp_mb();
-                       } else {
-                               (void) poll(NULL, 0, 10);
                        }
                } else {
-                       (void) poll(NULL, 0, 10);
+                       if (cds_wfcq_empty(&workqueue->cbs_head,
+                                       &workqueue->cbs_tail)) {
+                               (void) poll(NULL, 0, 10);
+                       }
                }
                if (workqueue->worker_after_wake_up_fct)
                        workqueue->worker_after_wake_up_fct(workqueue, workqueue->priv);
This page took 0.022682 seconds and 4 git commands to generate.