From: Mathieu Desnoyers Date: Thu, 21 Jan 2016 16:45:58 +0000 (-0500) Subject: urcu_ref_get_safe: introduce new API X-Git-Tag: v0.10.0~55 X-Git-Url: http://git.lttng.org/?a=commitdiff_plain;h=8b4b5a1a5f8587cb995391e4f49d03674ec60c0c;hp=8b4b5a1a5f8587cb995391e4f49d03674ec60c0c;p=urcu.git urcu_ref_get_safe: introduce new API 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 ---