urcu-bp: perform thread registration on urcu_bp_register_thread master
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 22 Nov 2019 16:02:36 +0000 (11:02 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 22 Nov 2019 16:02:36 +0000 (11:02 -0500)
commit5b46e39d0e4d2592853c7bfc11add02b1101c04b
treea2304c197e6adb67adbbb238135d3189e7955f79
parent60dd72eaef48fe7fafd398d1c6577973e50828c9
urcu-bp: perform thread registration on urcu_bp_register_thread

Some real-time use-cases (e.g. Xenomai) require to perform urcu-bp
thread registration early in the thread life-time before it starts
performing real-time tasks.

Currently, this can be achieved by issuing a urcu_bp_read_lock() and
urcu_bp_read_unlock() pair, or by using urcu_bp_read_ongoing(), while in
the initialization phrase.

However, it seems natural to expect that calling urcu_bp_register_thread()
would have the side effect to perform the lazy thread registration
immediately rather than being a no-op.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
README.md
include/urcu/urcu-bp.h
src/urcu-bp.c
This page took 0.030204 seconds and 4 git commands to generate.