Lines Matching refs:__mtx
75 mtx_t* __mtx, in cnd_timedwait() argument
77 return __bionic_thrd_error(pthread_cond_timedwait(__cnd, __mtx, __timeout)); in cnd_timedwait()
80 __BIONIC_THREADS_INLINE int cnd_wait(cnd_t* __cnd, mtx_t* __mtx) { in cnd_wait() argument
81 return __bionic_thrd_error(pthread_cond_wait(__cnd, __mtx)); in cnd_wait()
86 __BIONIC_THREADS_INLINE void mtx_destroy(mtx_t* __mtx) { in mtx_destroy() argument
87 pthread_mutex_destroy(__mtx); in mtx_destroy()
90 __BIONIC_THREADS_INLINE int mtx_init(mtx_t* __mtx, int __type) { in mtx_init() argument
99 return __bionic_thrd_error(pthread_mutex_init(__mtx, &__attr)); in mtx_init()
102 __BIONIC_THREADS_INLINE int mtx_lock(mtx_t* __mtx) { in mtx_lock() argument
103 return __bionic_thrd_error(pthread_mutex_lock(__mtx)); in mtx_lock()
107 __BIONIC_THREADS_INLINE int mtx_timedlock(mtx_t* __mtx, in mtx_timedlock() argument
109 return __bionic_thrd_error(pthread_mutex_timedlock(__mtx, __timeout)); in mtx_timedlock()
113 __BIONIC_THREADS_INLINE int mtx_trylock(mtx_t* __mtx) { in mtx_trylock() argument
114 return __bionic_thrd_error(pthread_mutex_trylock(__mtx)); in mtx_trylock()
117 __BIONIC_THREADS_INLINE int mtx_unlock(mtx_t* __mtx) { in mtx_unlock() argument
118 return __bionic_thrd_error(pthread_mutex_unlock(__mtx)); in mtx_unlock()