Lines Matching refs:mutex
252 #define MHD_mutex_create_(mutex) \ argument
253 ((0 == pthread_mutex_init ((mutex), NULL)) ? MHD_YES : MHD_NO)
260 #define MHD_mutex_create_(mutex) \ argument
261 ((NULL != (mutex) && 0 != InitializeCriticalSectionAndSpinCount((mutex),2000)) ? MHD_YES : MHD_NO)
270 #define MHD_mutex_destroy_(mutex) \ argument
271 ((0 == pthread_mutex_destroy ((mutex))) ? MHD_YES : MHD_NO)
278 #define MHD_mutex_destroy_(mutex) \ argument
279 ((NULL != (mutex)) ? (DeleteCriticalSection(mutex), MHD_YES) : MHD_NO)
290 #define MHD_mutex_lock_(mutex) \ argument
291 ((0 == pthread_mutex_lock((mutex))) ? MHD_YES : MHD_NO)
300 #define MHD_mutex_lock_(mutex) \ argument
301 ((NULL != (mutex)) ? (EnterCriticalSection((mutex)), MHD_YES) : MHD_NO)
312 #define MHD_mutex_trylock_(mutex) \ argument
313 ((0 == pthread_mutex_trylock((mutex))) ? MHD_YES : MHD_NO)
322 #define MHD_mutex_trylock_(mutex) \ argument
323 ((NULL != (mutex) && 0 != TryEnterCriticalSection ((mutex))) ? MHD_YES : MHD_NO)
332 #define MHD_mutex_unlock_(mutex) \ argument
333 ((0 == pthread_mutex_unlock((mutex))) ? MHD_YES : MHD_NO)
340 #define MHD_mutex_unlock_(mutex) \ argument
341 ((NULL != (mutex)) ? (LeaveCriticalSection((mutex)), MHD_YES) : MHD_NO)