Home
last modified time | relevance | path

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

/netbsd-src/lib/libc/stdlib/
H A Dmalloc.c80 static spinlock_t thread_lock = _SPINLOCK_INITIALIZER; variable
81 # 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; variable
102 # define _MALLOC_LOCK() if (__isthreaded) mutex_lock(&thread_lock);
103 # define _MALLOC_UNLOCK() if (__isthreaded) mutex_unlock(&thread_lock);
/netbsd-src/external/cddl/osnet/dist/uts/common/os/
H A Dcallb.c406 thread_lock(tp); in callb_is_stopped()