Lines Matching refs:semaphores
3052 HANDLE semaphores[2]; member
3065 ReleaseSemaphore(info->semaphores[0], 1, NULL); in critsect_locked_thread()
3066 ret = WaitForSingleObject(info->semaphores[1], 1000); in critsect_locked_thread()
3081 ReleaseSemaphore(info->semaphores[0], 1, NULL); in critsect_locked_thread()
3082 ret = WaitForSingleObject(info->semaphores[1], 1000); in critsect_locked_thread()
3102 info.semaphores[0] = CreateSemaphoreW(NULL, 0, 1, NULL); in test_RtlIsCriticalSectionLocked()
3103 ok(info.semaphores[0] != NULL, "CreateSemaphore failed with %u\n", GetLastError()); in test_RtlIsCriticalSectionLocked()
3104 info.semaphores[1] = CreateSemaphoreW(NULL, 0, 1, NULL); in test_RtlIsCriticalSectionLocked()
3105 ok(info.semaphores[1] != NULL, "CreateSemaphore failed with %u\n", GetLastError()); in test_RtlIsCriticalSectionLocked()
3121 ret = WaitForSingleObject(info.semaphores[0], 1000); in test_RtlIsCriticalSectionLocked()
3126 ReleaseSemaphore(info.semaphores[1], 1, NULL); in test_RtlIsCriticalSectionLocked()
3127 ret = WaitForSingleObject(info.semaphores[0], 1000); in test_RtlIsCriticalSectionLocked()
3135 ReleaseSemaphore(info.semaphores[1], 1, NULL); in test_RtlIsCriticalSectionLocked()
3140 CloseHandle(info.semaphores[0]); in test_RtlIsCriticalSectionLocked()
3141 CloseHandle(info.semaphores[1]); in test_RtlIsCriticalSectionLocked()