Lines Matching defs:Mutex
293 static BOOL os_createmutex(HANDLE Mutex) {
294 Mutex = CreateMutex(NULL, FALSE, NULL);
296 if (Mutex == NULL) {
303 static void os_destroymutex(HANDLE Mutex) {
304 if (Mutex != NULL) {
305 CloseHandle(Mutex);
310 static void os_obtainmutex(HANDLE Mutex) {
311 WaitForSingleObject(Mutex, INFINITE);
314 static void os_releasemutex(HANDLE Mutex) {
315 ReleaseMutex(Mutex);