Lines Matching refs:mutex
272 int uv_mutex_init(uv_mutex_t* mutex) { in uv_mutex_init() argument
273 InitializeCriticalSection(mutex); in uv_mutex_init()
278 int uv_mutex_init_recursive(uv_mutex_t* mutex) { in uv_mutex_init_recursive() argument
279 return uv_mutex_init(mutex); in uv_mutex_init_recursive()
283 void uv_mutex_destroy(uv_mutex_t* mutex) { in uv_mutex_destroy() argument
284 DeleteCriticalSection(mutex); in uv_mutex_destroy()
288 void uv_mutex_lock(uv_mutex_t* mutex) { in uv_mutex_lock() argument
289 EnterCriticalSection(mutex); in uv_mutex_lock()
293 int uv_mutex_trylock(uv_mutex_t* mutex) { in uv_mutex_trylock() argument
294 if (TryEnterCriticalSection(mutex)) in uv_mutex_trylock()
301 void uv_mutex_unlock(uv_mutex_t* mutex) { in uv_mutex_unlock() argument
302 LeaveCriticalSection(mutex); in uv_mutex_unlock()
425 void uv_cond_wait(uv_cond_t* cond, uv_mutex_t* mutex) { in uv_cond_wait() argument
426 if (!SleepConditionVariableCS(&cond->cond_var, mutex, INFINITE)) in uv_cond_wait()
431 int uv_cond_timedwait(uv_cond_t* cond, uv_mutex_t* mutex, uint64_t timeout) { in uv_cond_timedwait() argument
432 if (SleepConditionVariableCS(&cond->cond_var, mutex, (DWORD)(timeout / 1e6))) in uv_cond_timedwait()