mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
Improve reporting for barrier errors
uv_barrier_init() errors are currently ignored. Use UV_RUNTIME_CHECK() to catch them and to improve error reporting for any uv_barrier_init() run-time failures (by augmenting error messages with file/line information and the error string corresponding to the value returned).
This commit is contained in:
@@ -56,8 +56,14 @@ typedef uv_barrier_t isc_barrier_t;
|
||||
|
||||
#endif /* ISC_TRACK_PTHREADS_OBJECTS */
|
||||
|
||||
#define isc__barrier_init(bp, count) uv_barrier_init(bp, count)
|
||||
#define isc__barrier_wait(bp) uv_barrier_wait(bp)
|
||||
#define isc__barrier_destroy(bp) uv_barrier_destroy(bp)
|
||||
#define isc__barrier_init(bp, count) \
|
||||
{ \
|
||||
int _ret = uv_barrier_init(bp, count); \
|
||||
UV_RUNTIME_CHECK(uv_barrier_init, _ret); \
|
||||
}
|
||||
|
||||
#define isc__barrier_wait(bp) uv_barrier_wait(bp)
|
||||
|
||||
#define isc__barrier_destroy(bp) uv_barrier_destroy(bp)
|
||||
|
||||
#endif /* __SANITIZE_THREAD__ */
|
||||
|
Reference in New Issue
Block a user