urcu-defer: fix futex wakeup value urcu/busyloop
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Thu, 24 Sep 2009 00:55:52 +0000 (20:55 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Thu, 24 Sep 2009 00:55:52 +0000 (20:55 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
urcu-defer.c

index f0dec91b6f5315d7430e749648fd6c315fa160c0..ccf35116d2b73e63634730a475d09feeb650ae38 100644 (file)
@@ -113,7 +113,7 @@ static void wake_up_defer(void)
 {
        if (unlikely(atomic_read(&defer_thread_futex) == -1)) {
                atomic_set(&defer_thread_futex, 0);
-               futex(&defer_thread_futex, FUTEX_WAKE, 0,
+               futex(&defer_thread_futex, FUTEX_WAKE, 1,
                      NULL, NULL, 0);
        }
 }
This page took 0.025868 seconds and 4 git commands to generate.