X-Git-Url: https://git.lttng.org/?p=urcu.git;a=blobdiff_plain;f=src%2Fworkqueue.c;h=39d0e077acc101b5e1588c9a1fae954050bd134c;hp=6707ffe3b45e2c2226d99c3b163d4e1c820028aa;hb=c6871b650af872296c57dc65f93bd912d2b4435e;hpb=d25f25df027b158726f8a361e52f0e3a7529d5eb diff --git a/src/workqueue.c b/src/workqueue.c index 6707ffe..39d0e07 100644 --- a/src/workqueue.c +++ b/src/workqueue.c @@ -238,15 +238,12 @@ static void *workqueue_thread(void *arg) if (cds_wfcq_empty(&workqueue->cbs_head, &workqueue->cbs_tail)) { futex_wait(&workqueue->futex); - (void) poll(NULL, 0, 10); uatomic_dec(&workqueue->futex); /* * Decrement futex before reading * urcu_work list. */ cmm_smp_mb(); - } else { - (void) poll(NULL, 0, 10); } } else { (void) poll(NULL, 0, 10);