Lines Matching full:mutex
104 // Mutex
105 static int pthread_mutex_init(pthread_mutex_t* const mutex, void* mutexattr) {
108 InitializeCriticalSectionEx(mutex, 0 /*dwSpinCount*/, 0 /*Flags*/);
110 InitializeCriticalSection(mutex);
115 static int pthread_mutex_lock(pthread_mutex_t* const mutex) {
116 EnterCriticalSection(mutex);
120 static int pthread_mutex_unlock(pthread_mutex_t* const mutex) {
121 LeaveCriticalSection(mutex);
125 static int pthread_mutex_destroy(pthread_mutex_t* const mutex) {
126 DeleteCriticalSection(mutex);
179 pthread_mutex_t* const mutex) {
182 ok = SleepConditionVariableCS(condition, mutex, INFINITE);
188 // now unlock the mutex so pthread_cond_signal may be issued
189 pthread_mutex_unlock(mutex);
193 pthread_mutex_lock(mutex);