Searched refs:mutex (Results 1 – 8 of 8) sorted by relevance
55 bool malloc_mutex_init(malloc_mutex_t *mutex);72 malloc_mutex_lock(malloc_mutex_t *mutex) in malloc_mutex_lock() argument78 AcquireSRWLockExclusive(&mutex->lock); in malloc_mutex_lock()80 EnterCriticalSection(&mutex->lock); in malloc_mutex_lock()83 OSSpinLockLock(&mutex->lock); in malloc_mutex_lock()85 pthread_mutex_lock(&mutex->lock); in malloc_mutex_lock()91 malloc_mutex_unlock(malloc_mutex_t *mutex) in malloc_mutex_unlock() argument97 ReleaseSRWLockExclusive(&mutex->lock); in malloc_mutex_unlock()99 LeaveCriticalSection(&mutex->lock); in malloc_mutex_unlock()102 OSSpinLockUnlock(&mutex->lock); in malloc_mutex_unlock()[all …]
90 * Among other things, it must be possible to initialize a mutex without98 * to avoid recursive allocation during mutex initialization.253 /* Adaptive mutex support in pthreads. */
362 #include "jemalloc/internal/mutex.h"390 #include "jemalloc/internal/mutex.h"475 #include "jemalloc/internal/mutex.h"503 #include "jemalloc/internal/mutex.h"
72 malloc_mutex_init(malloc_mutex_t *mutex) in malloc_mutex_init() argument77 InitializeSRWLock(&mutex->lock); in malloc_mutex_init()84 mutex->lock = 0; in malloc_mutex_init()87 mutex->postponed_next = postponed_mutexes; in malloc_mutex_init()88 postponed_mutexes = mutex; in malloc_mutex_init()90 if (_pthread_mutex_init_calloc_cb(&mutex->lock, in malloc_mutex_init()110 malloc_mutex_prefork(malloc_mutex_t *mutex) in malloc_mutex_prefork() argument113 malloc_mutex_lock(mutex); in malloc_mutex_prefork()120 malloc_mutex_unlock(mutex); in malloc_mutex_postfork_parent()128 malloc_mutex_unlock(mutex); in malloc_mutex_postfork_child()[all …]
145 released in bulk, thus reducing the total number of mutex operations. See179 mutex locking/unlocking operations while in single-threaded mode. In
337 - Add a missing mutex unlock in a malloc_init_hard() error path. In practice608 - Add missing checks for mutex initialization failures.664 - Add missing mutex unlocks for some OOM error paths in the heap profiling725 - Add a missing mutex unlock in library initialization code. If multiple
86 $(srcroot)src/mb.c $(srcroot)src/mutex.c $(srcroot)src/pages.c \
1233 dnl so, mutex initialization causes allocation, and we need to implement this