Home
last modified time | relevance | path

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

/PHP-8.1/ext/pcre/pcre2lib/sljit/
H A 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(!InterlockedCompareExchangePointer(&allocator_lock, NULL, NULL))) { 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)

Completed in 8 milliseconds