Add rcu_read_ongoing() API to each urcu flavor
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 30 Apr 2013 00:17:22 +0000 (20:17 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 30 Apr 2013 00:17:22 +0000 (20:17 -0400)
commit882f335739b978d1c55be2faeed077f315afe5d7
tree0705b8157885d33cefe7221fe58e812748155eb7
parent171ff3a34ac166a41a075749517fd3780df121da
Add rcu_read_ongoing() API to each urcu flavor

This will allow checking whether:

- thread is online (QSBR),
- thread is nested within read-side critical section (other flavors),

This is useful for libraries that need to know if QSBR is online in
order to save the original state temporarily so it can be restored
before returning to the caller.

Eventually, this API can be called by a "debugging" implementation of
rcu_dereference() and other urcu-pointer.h API members to check that no
RCU pointer is read outside of RCU read-side critical sections.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
16 files changed:
tests/test_urcu.c
tests/test_urcu_bp.c
tests/test_urcu_qsbr.c
urcu-bp.c
urcu-bp.h
urcu-flavor.h
urcu-qsbr.c
urcu-qsbr.h
urcu.c
urcu.h
urcu/map/urcu-bp.h
urcu/map/urcu-qsbr.h
urcu/map/urcu.h
urcu/static/urcu-bp.h
urcu/static/urcu-qsbr.h
urcu/static/urcu.h
This page took 0.026688 seconds and 4 git commands to generate.