Lines Matching full:mutex
13 int mtx_init(mtx_t *mutex, int type) in mtx_init() argument
36 switch (pthread_mutex_init(mutex, attrp)) { in mtx_init()
52 void mtx_destroy(mtx_t *mutex) in mtx_destroy() argument
54 (void)pthread_mutex_destroy(mutex); in mtx_destroy()
57 int mtx_lock(mtx_t *mutex) in mtx_lock() argument
59 switch (pthread_mutex_lock(mutex)) { in mtx_lock()
67 int mtx_timedlock(mtx_t *restrict mutex, const struct timespec *restrict time_point) in mtx_timedlock() argument
69 switch (pthread_mutex_timedlock(mutex, time_point)) { in mtx_timedlock()
79 int mtx_trylock(mtx_t *mutex) in mtx_trylock() argument
81 switch (pthread_mutex_trylock(mutex)) { in mtx_trylock()
91 int mtx_unlock(mtx_t *mutex) in mtx_unlock() argument
93 switch (pthread_mutex_unlock(mutex)) { in mtx_unlock()