mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 18:49:59 -04:00
Add runtime check on top of pthread_mutex_{lock,unlock} in rng
This commit is contained in:
parent
8c5aeb6c4c
commit
18ebcf2b30
1 changed files with 2 additions and 2 deletions
|
|
@ -74,8 +74,8 @@ static volatile HANDLE _mutex = NULL;
|
|||
|
||||
#include <pthread.h>
|
||||
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];
|
||||
|
|
|
|||
Loading…
Reference in a new issue