urcu-wait: Initialize node in URCU_WAIT_NODE_INIT
[userspace-rcu.git] / src / urcu-wait.h
index a7195be0c91266a6224ce86d73a4811c8695952d..21cd85dcfdadfde706af3cf085112d68987d1984 100644 (file)
@@ -25,6 +25,7 @@
 
 #include <urcu/uatomic.h>
 #include <urcu/wfstack.h>
+#include <urcu/futex.h>
 #include "urcu-die.h"
 
 /*
@@ -48,7 +49,7 @@ struct urcu_wait_node {
 };
 
 #define URCU_WAIT_NODE_INIT(name, _state)              \
-       { .state = _state }
+       { .node = { .next = NULL }, .state = _state }
 
 #define DEFINE_URCU_WAIT_NODE(name, state)             \
        struct urcu_wait_node name = URCU_WAIT_NODE_INIT(name, state)
This page took 0.025251 seconds and 4 git commands to generate.