Lines Matching refs:mtx
36 mtx_destroy(mtx_t *mtx) in mtx_destroy() argument
39 (void)pthread_mutex_destroy(mtx); in mtx_destroy()
43 mtx_init(mtx_t *mtx, int type) in mtx_init() argument
65 pthread_mutex_init(mtx, &attr) != 0) in mtx_init()
72 mtx_lock(mtx_t *mtx) in mtx_lock() argument
75 if (pthread_mutex_lock(mtx) != 0) in mtx_lock()
81 mtx_timedlock(mtx_t *restrict mtx, const struct timespec *restrict ts) in mtx_timedlock() argument
84 switch (pthread_mutex_timedlock(mtx, ts)) { in mtx_timedlock()
95 mtx_trylock(mtx_t *mtx) in mtx_trylock() argument
98 switch (pthread_mutex_trylock(mtx)) { in mtx_trylock()
109 mtx_unlock(mtx_t *mtx) in mtx_unlock() argument
112 if (pthread_mutex_unlock(mtx) != 0) in mtx_unlock()