#include <urcu/rculfqueue.h> /* RCU Lock-free queue */
#include <urcu/compiler.h> /* For CAA_ARRAY_SIZE */
#include <urcu/rculfqueue.h> /* RCU Lock-free queue */
#include <urcu/compiler.h> /* For CAA_ARRAY_SIZE */
if (!qnode) {
break; /* Queue is empty. */
}
/* Getting the container structure from the node */
node = caa_container_of(qnode, struct mynode, node);
printf(" %d", node->value);
if (!qnode) {
break; /* Queue is empty. */
}
/* Getting the container structure from the node */
node = caa_container_of(qnode, struct mynode, node);
printf(" %d", node->value);