urcu-pointer: implement URCU_FORCE_CAST for C++ compatibility of urcu-pointer.h
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 13 Sep 2011 21:00:08 +0000 (17:00 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 13 Sep 2011 21:02:44 +0000 (17:02 -0400)
commit4501f28414425eb594bd1396161a91cb23a11a6f
tree1d3e5f1560bbfc295cb9f0bd6f55002d4449f008
parent27b940e7a3f4ebd44ac60636905374e59751e835
urcu-pointer: implement URCU_FORCE_CAST for C++ compatibility of urcu-pointer.h

We need to be careful with those, so we do not break aliasing. Our
use-case is to cast back and forth between the same type and a void *
(or void **) type when we pass pointers to C functions. As we cast back
to the same type when the pointer is returned from the function,
aliasing should still work.

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