projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add FreeBSD, DragonFly to syscall-compat.h
[userspace-rcu.git]
/
src
/
workqueue.c
diff --git
a/src/workqueue.c
b/src/workqueue.c
index 0b1a9eae41f91ba5bad8dc7e43db2731707d8854..59eb21d534e9446df3f477795062e9dba4ec2abc 100644
(file)
--- a/
src/workqueue.c
+++ b/
src/workqueue.c
@@
-36,12
+36,12
@@
#include <sched.h>
#include "compat-getcpu.h"
#include <sched.h>
#include "compat-getcpu.h"
-#include
"urcu/wfcqueue.h"
-#include
"urcu-pointer.h"
-#include
"urcu/list.h"
-#include
"urcu/futex.h"
-#include
"urcu/tls-compat.h"
-#include
"urcu/ref.h"
+#include
<urcu/wfcqueue.h>
+#include
<urcu/pointer.h>
+#include
<urcu/list.h>
+#include
<urcu/futex.h>
+#include
<urcu/tls-compat.h>
+#include
<urcu/ref.h>
#include "urcu-die.h"
#include "workqueue.h"
#include "urcu-die.h"
#include "workqueue.h"
@@
-244,11
+244,12
@@
static void *workqueue_thread(void *arg)
* urcu_work list.
*/
cmm_smp_mb();
* urcu_work list.
*/
cmm_smp_mb();
- } else {
- (void) poll(NULL, 0, 10);
}
} else {
}
} 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);
}
if (workqueue->worker_after_wake_up_fct)
workqueue->worker_after_wake_up_fct(workqueue, workqueue->priv);
This page took
0.023228 seconds
and
4
git commands to generate.