remove thread_private.h defines, moved to arc4random_*.h
This commit is contained in:
parent
1b1bce16b1
commit
edebb7a66e
@ -1,14 +0,0 @@
|
|||||||
#include <pthread.h>
|
|
||||||
|
|
||||||
static pthread_mutex_t arc4random_mtx = PTHREAD_MUTEX_INITIALIZER;
|
|
||||||
|
|
||||||
#define _ARC4_LOCK() pthread_mutex_lock(&arc4random_mtx)
|
|
||||||
#define _ARC4_UNLOCK() pthread_mutex_unlock(&arc4random_mtx)
|
|
||||||
|
|
||||||
#ifdef __GLIBC__
|
|
||||||
extern void *__dso_handle;
|
|
||||||
extern int __register_atfork(void (*)(void), void(*)(void), void (*)(void), void *);
|
|
||||||
#define _ARC4_ATFORK(f) __register_atfork(NULL, NULL, (f), __dso_handle)
|
|
||||||
#else
|
|
||||||
#define _ARC4_ATFORK(f) pthread_atfork(NULL, NULL, (f))
|
|
||||||
#endif
|
|
Loading…
x
Reference in New Issue
Block a user