Lines Matching refs:__m
108 int __libcpp_recursive_mutex_init(__libcpp_recursive_mutex_t *__m);
111 int __libcpp_recursive_mutex_lock(__libcpp_recursive_mutex_t *__m);
114 bool __libcpp_recursive_mutex_trylock(__libcpp_recursive_mutex_t *__m);
117 int __libcpp_recursive_mutex_unlock(__libcpp_recursive_mutex_t *__m);
120 int __libcpp_recursive_mutex_destroy(__libcpp_recursive_mutex_t *__m);
123 int __libcpp_mutex_lock(__libcpp_mutex_t *__m);
126 bool __libcpp_mutex_trylock(__libcpp_mutex_t *__m);
129 int __libcpp_mutex_unlock(__libcpp_mutex_t *__m);
132 int __libcpp_mutex_destroy(__libcpp_mutex_t *__m);
142 int __libcpp_condvar_wait(__libcpp_condvar_t* __cv, __libcpp_mutex_t* __m);
145 int __libcpp_condvar_timedwait(__libcpp_condvar_t *__cv, __libcpp_mutex_t *__m,
205 int __libcpp_recursive_mutex_init(__libcpp_recursive_mutex_t *__m)
216 __ec = pthread_mutex_init(__m, &attr);
223 pthread_mutex_destroy(__m);
229 int __libcpp_recursive_mutex_lock(__libcpp_recursive_mutex_t *__m)
231 return pthread_mutex_lock(__m);
234 bool __libcpp_recursive_mutex_trylock(__libcpp_recursive_mutex_t *__m)
236 return pthread_mutex_trylock(__m) == 0;
239 int __libcpp_recursive_mutex_unlock(__libcpp_mutex_t *__m)
241 return pthread_mutex_unlock(__m);
244 int __libcpp_recursive_mutex_destroy(__libcpp_recursive_mutex_t *__m)
246 return pthread_mutex_destroy(__m);
249 int __libcpp_mutex_lock(__libcpp_mutex_t *__m)
251 return pthread_mutex_lock(__m);
254 bool __libcpp_mutex_trylock(__libcpp_mutex_t *__m)
256 return pthread_mutex_trylock(__m) == 0;
259 int __libcpp_mutex_unlock(__libcpp_mutex_t *__m)
261 return pthread_mutex_unlock(__m);
264 int __libcpp_mutex_destroy(__libcpp_mutex_t *__m)
266 return pthread_mutex_destroy(__m);
280 int __libcpp_condvar_wait(__libcpp_condvar_t *__cv, __libcpp_mutex_t *__m)
282 return pthread_cond_wait(__cv, __m);
285 int __libcpp_condvar_timedwait(__libcpp_condvar_t *__cv, __libcpp_mutex_t *__m,
288 return pthread_cond_timedwait(__cv, __m, __ts);
392 int __libcpp_recursive_mutex_init(__libcpp_recursive_mutex_t *__m)
394 InitializeCriticalSection(__m);
398 int __libcpp_recursive_mutex_lock(__libcpp_recursive_mutex_t *__m)
400 EnterCriticalSection(__m);
404 bool __libcpp_recursive_mutex_trylock(__libcpp_recursive_mutex_t *__m)
406 return TryEnterCriticalSection(__m) != 0;
409 int __libcpp_recursive_mutex_unlock(__libcpp_recursive_mutex_t *__m)
411 LeaveCriticalSection(__m);
415 int __libcpp_recursive_mutex_destroy(__libcpp_recursive_mutex_t *__m)
417 DeleteCriticalSection(__m);
421 int __libcpp_mutex_lock(__libcpp_mutex_t *__m)
423 AcquireSRWLockExclusive(__m);
427 bool __libcpp_mutex_trylock(__libcpp_mutex_t *__m)
429 return TryAcquireSRWLockExclusive(__m) != 0;
432 int __libcpp_mutex_unlock(__libcpp_mutex_t *__m)
434 ReleaseSRWLockExclusive(__m);
438 int __libcpp_mutex_destroy(__libcpp_mutex_t *__m)
440 static_cast<void>(__m);
457 int __libcpp_condvar_wait(__libcpp_condvar_t *__cv, __libcpp_mutex_t *__m)
459 SleepConditionVariableSRW(__cv, __m, INFINITE, 0);
463 int __libcpp_condvar_timedwait(__libcpp_condvar_t *__cv, __libcpp_mutex_t *__m,
473 if (!SleepConditionVariableSRW(__cv, __m,