diff --git a/lib/isc/xoshiro128starstar.c b/lib/isc/xoshiro128starstar.c index 9df1b4ba74..bc08e6740f 100644 --- a/lib/isc/xoshiro128starstar.c +++ b/lib/isc/xoshiro128starstar.c @@ -74,8 +74,8 @@ static volatile HANDLE _mutex = NULL; #include static pthread_mutex_t _mutex = PTHREAD_MUTEX_INITIALIZER; -#define _LOCK() pthread_mutex_lock(&_mutex) -#define _UNLOCK() pthread_mutex_unlock(&_mutex) +#define _LOCK() RUNTIME_CHECK(pthread_mutex_lock(&_mutex)==0) +#define _UNLOCK() RUNTIME_CHECK(pthread_mutex_unlock(&_mutex)==0) #endif /* defined(_WIN32) || defined(_WIN64) */ static uint32_t seed[4];