Home
last modified time | relevance | path

Searched refs:allocator_lock (Results 1 – 1 of 1) sorted by relevance

/external/pcre/dist2/src/sljit/
DsljitUtils.c41 static pthread_mutex_t allocator_lock = PTHREAD_MUTEX_INITIALIZER; variable
43 #define SLJIT_ALLOCATOR_LOCK() pthread_mutex_lock(&allocator_lock)
44 #define SLJIT_ALLOCATOR_UNLOCK() pthread_mutex_unlock(&allocator_lock)
46 static HANDLE allocator_lock; variable
51 if (SLJIT_UNLIKELY(!allocator_lock)) { in allocator_grab_lock()
53 if (InterlockedCompareExchangePointer(&allocator_lock, lock, NULL)) in allocator_grab_lock()
56 WaitForSingleObject(allocator_lock, INFINITE); in allocator_grab_lock()
60 #define SLJIT_ALLOCATOR_UNLOCK() ReleaseMutex(allocator_lock)