Home | History | Annotate | Download | only in src

Lines Matching full:mutex

67 JEMALLOC_EXPORT int	_pthread_mutex_init_calloc_cb(pthread_mutex_t *mutex,
72 malloc_mutex_init(malloc_mutex_t *mutex)
77 InitializeSRWLock(&mutex->lock);
79 if (!InitializeCriticalSectionAndSpinCount(&mutex->lock,
84 mutex->lock = 0;
87 mutex->postponed_next = postponed_mutexes;
88 postponed_mutexes = mutex;
90 if (_pthread_mutex_init_calloc_cb(&mutex->lock,
100 if (pthread_mutex_init(&mutex->lock, &attr) != 0) {
110 malloc_mutex_prefork(malloc_mutex_t *mutex)
113 malloc_mutex_lock(mutex);
117 malloc_mutex_postfork_parent(malloc_mutex_t *mutex)
120 malloc_mutex_unlock(mutex);
124 malloc_mutex_postfork_child(malloc_mutex_t *mutex)
128 malloc_mutex_unlock(mutex);
130 if (malloc_mutex_init(mutex)) {
131 malloc_printf("<jemalloc>: Error re-initializing mutex in "