Home
last modified time | relevance | path

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

/minix3/lib/libc/stdlib/
H A Dmalloc.c92 static spinlock_t thread_lock = _SPINLOCK_INITIALIZER; variable
93 # 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; variable
121 #define _MALLOC_LOCK() if (__isthreaded) mutex_lock(&thread_lock);
122 #define _MALLOC_UNLOCK() if (__isthreaded) mutex_unlock(&thread_lock);