urcu_ref_get_safe: introduce new API
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 21 Jan 2016 16:45:58 +0000 (11:45 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 21 Jan 2016 16:47:27 +0000 (11:47 -0500)
Add a urcu_ref_get_safe API, which returns a boolean. It takes the value
"false" if a LONG_MAX overflow would occur (get is not performed in this
case), or true otherwise.

It warns the user (at compile-time) if the return value is unchecked.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>

No differences found
This page took 0.025396 seconds and 4 git commands to generate.