Introduce urcu_assert and registration check
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 13 Sep 2015 14:48:03 +0000 (10:48 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 13 Sep 2015 14:48:03 +0000 (10:48 -0400)
commita77f7d8228bcf1259f8c4121ce02d4763424d45a
treec8416380087cd8902b2b06112659523ffb55768e
parentefa8d2c8143de5f4e53bf5ef6f491faf7d7a6bee
Introduce urcu_assert and registration check

Add a "registered" flag to urcu.c and urcu-qsbr.c, set/cleared when a
thread is registered and unregistered. Add corresponding asserts in
those functions checking if a thread is registered or unregistered more
than once (which would be a bug in the way the application uses urcu).

Move the checks enabled on RCU_DEBUG to a single header: urcu/debug.h.
Add checks for the registered flag in RCU read-side lock functions (new
urcu_assert() checks, which are only built-in if RCU_DEBUG is defined at
compile-time).

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Makefile.am
urcu-defer-impl.h
urcu-qsbr.c
urcu.c
urcu/debug.h [new file with mode: 0644]
urcu/static/urcu-bp.h
urcu/static/urcu-qsbr.h
urcu/static/urcu.h
This page took 0.031752 seconds and 4 git commands to generate.