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