Searched refs:thread_lock (Results 1 – 3 of 3) sorted by relevance
80 static spinlock_t thread_lock = _SPINLOCK_INITIALIZER; variable81 # define _MALLOC_LOCK() if (__isthreaded) _SPINLOCK(&thread_lock);82 # define _MALLOC_UNLOCK() if (__isthreaded) _SPINUNLOCK(&thread_lock);101 static mutex_t thread_lock = MUTEX_INITIALIZER; variable102 # define _MALLOC_LOCK() if (__isthreaded) mutex_lock(&thread_lock);103 # define _MALLOC_UNLOCK() if (__isthreaded) mutex_unlock(&thread_lock);
406 thread_lock(tp); in callb_is_stopped()
3111 thread_lock(curthread); in zvol_geom_worker()