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 598fa5071a2ca727e43d07a67cb2a62eb4980632..7e8078952c75302b8af10c10f421e1294bd3e34d 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.025489 seconds and 4 git commands to generate.