Searched refs:thread_lock (Results 1 – 1 of 1) sorted by relevance
92 static spinlock_t thread_lock = _SPINLOCK_INITIALIZER; variable93 # define _MALLOC_LOCK() if (__isthreaded) _SPINLOCK(&thread_lock);94 # define _MALLOC_UNLOCK() if (__isthreaded) _SPINUNLOCK(&thread_lock);120 static mutex_t thread_lock = MUTEX_INITIALIZER; variable121 #define _MALLOC_LOCK() if (__isthreaded) mutex_lock(&thread_lock);122 #define _MALLOC_UNLOCK() if (__isthreaded) mutex_unlock(&thread_lock);