Home
last modified time | relevance | path

Searched refs:mtx (Results 1 – 3 of 3) sorted by relevance

/unit/src/
H A Dnxt_thread_mutex.c81 nxt_thread_mutex_create(nxt_thread_mutex_t *mtx) in nxt_thread_mutex_create() argument
99 err = pthread_mutex_init(mtx, &attr); in nxt_thread_mutex_create()
110 nxt_thread_log_debug("pthread_mutex_init(%p)", mtx); in nxt_thread_mutex_create()
117 nxt_thread_mutex_destroy(nxt_thread_mutex_t *mtx) in nxt_thread_mutex_destroy() argument
121 err = pthread_mutex_destroy(mtx); in nxt_thread_mutex_destroy()
131 nxt_thread_mutex_lock(nxt_thread_mutex_t *mtx) in nxt_thread_mutex_lock() argument
137 err = pthread_mutex_lock(mtx); in nxt_thread_mutex_lock()
149 nxt_thread_mutex_trylock(nxt_thread_mutex_t *mtx) in nxt_thread_mutex_trylock() argument
157 err = pthread_mutex_trylock(mtx); in nxt_thread_mutex_trylock()
174 nxt_thread_mutex_unlock(nxt_thread_mutex_t *mtx) in nxt_thread_mutex_unlock() argument
[all …]
H A Dnxt_thread.h103 NXT_EXPORT nxt_int_t nxt_thread_mutex_create(nxt_thread_mutex_t *mtx);
104 NXT_EXPORT void nxt_thread_mutex_destroy(nxt_thread_mutex_t *mtx);
105 NXT_EXPORT nxt_int_t nxt_thread_mutex_lock(nxt_thread_mutex_t *mtx);
106 NXT_EXPORT nxt_bool_t nxt_thread_mutex_trylock(nxt_thread_mutex_t *mtx);
107 NXT_EXPORT nxt_int_t nxt_thread_mutex_unlock(nxt_thread_mutex_t *mtx);
116 nxt_thread_mutex_t *mtx, nxt_nsec_t timeout);
H A Dnxt_thread_cond.c58 nxt_thread_cond_wait(nxt_thread_cond_t *cond, nxt_thread_mutex_t *mtx, in nxt_thread_cond_wait() argument
72 err = pthread_cond_wait(cond, mtx); in nxt_thread_cond_wait()
93 err = pthread_cond_timedwait(cond, mtx, &ts); in nxt_thread_cond_wait()