rculfqueue.h: do not include urcu-call-rcu.h
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 30 Nov 2018 21:59:18 +0000 (16:59 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 12 Dec 2018 15:18:49 +0000 (10:18 -0500)
urcu-call-rcu.h is included by rculfhqueue.h only for struct rcu_head
forward declaration, but as a result the urcu flavor needs to be chosen
beforehand, and therefore prevents using rculfqueue.h with multiple
urcu flavors in a given compile unit.

Remove that include and do a forward declaration of struct rcu_head
instead.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/urcu/rculfqueue.h

index 598fa50..7e80789 100644 (file)
  */
 
 #include <assert.h>
-#include <urcu-call-rcu.h>
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
 struct cds_lfq_queue_rcu;
+struct rcu_head;
 
 struct cds_lfq_node_rcu {
        struct cds_lfq_node_rcu *next;
This page took 0.031113 seconds and 4 git commands to generate.