Searched refs:mutex (Results 1 – 10 of 10) sorted by relevance
55 int pthread_mutex_init(pthread_mutex_t* mutex, in pthread_mutex_init() argument60 int pthread_mutex_destroy(pthread_mutex_t* mutex) { in pthread_mutex_destroy() argument64 int pthread_mutex_lock(pthread_mutex_t* mutex) { in pthread_mutex_lock() argument68 int pthread_mutex_trylock(pthread_mutex_t* mutex) { in pthread_mutex_trylock() argument72 int pthread_mutex_unlock(pthread_mutex_t* mutex) { in pthread_mutex_unlock() argument77 pthread_mutex_t* restrict mutex) { in pthread_cond_wait() argument82 pthread_mutex_t* restrict mutex, in pthread_cond_timedwait() argument
66 $(LIBCXX_DIR)/src/mutex.cpp \
126 struct mutex mlock;
56 $(LIBCXX_DIR)/src/mutex.cpp \
54 struct mutex mlock;68 static struct mutex g_hset_lock = MUTEX_INITIAL_VALUE(g_hset_lock);
67 struct mutex mlock;
57 static struct mutex ipc_port_lock = MUTEX_INITIAL_VALUE(ipc_port_lock);
50 static struct mutex unittest_lock = MUTEX_INITIAL_VALUE(unittest_lock);
26 #include <kernel/mutex.h>
2612 MLOCK_T mutex; /* locate lock among fields that rarely change */ member2758 #define PREACTION(M) ((use_lock(M))? ACQUIRE_LOCK(&(M)->mutex) : 0)2759 #define POSTACTION(M) { if (use_lock(M)) RELEASE_LOCK(&(M)->mutex); }3108 static void pre_fork(void) { ACQUIRE_LOCK(&(gm)->mutex); } in pre_fork()3109 static void post_fork_parent(void) { RELEASE_LOCK(&(gm)->mutex); } in post_fork_parent()3110 static void post_fork_child(void) { INITIAL_LOCK(&(gm)->mutex); } in post_fork_child()3167 (void)INITIAL_LOCK(&gm->mutex); in init_mparams()5440 (void)INITIAL_LOCK(&m->mutex); in init_user_mstate()5512 (void)DESTROY_LOCK(&ms->mutex); /* destroy before unmapped */ in destroy_mspace()