tls-compat.h: introduce DEFINE_URCU_TLS_INIT
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 9 Apr 2020 15:26:31 +0000 (11:26 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 9 Apr 2020 15:26:31 +0000 (11:26 -0400)
commitcb1f3ebfa99c3d49962fa2421ea3ae33d8dad757
tree99881e9f82424e861fddea767de5341605dbe35f
parent3214608619eac09e9c0ab1ea9a1a36bd1b85c18d
tls-compat.h: introduce DEFINE_URCU_TLS_INIT

DEFINE_URCU_TLS() cannot be used in this way for !CONFIG_RCU_TLS:

  DEFINE_URCU_TLS(ino_t, cached_net_ns) = NS_INO_UNINITIALIZED;

Introduce a new DEFINE_URCU_TLS_INIT which allows expressing a nonzero
intial value:

  DEFINE_URCU_TLS_INIT(ino_t, cached_net_ns, NS_INO_UNINITIALIZED);

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/urcu/tls-compat.h
This page took 0.024756 seconds and 4 git commands to generate.