Tentative implementation of thread_wait_mutex() on Win32 threads.

This commit is contained in:
OBattler
2022-05-25 23:08:52 +02:00
parent 6ec0d337ec
commit 4e6fb0f02d

View File

@@ -45,6 +45,16 @@ thread_create(void (*func)(void *param), void *param)
}
int
thread_test_mutex(thread_t *arg)
{
if (arg == NULL) return(0);
return (WaitForSingleObject(arg, 0) == WAIT_OBJECT_0) ? 1 : 0;
}
int
thread_wait(thread_t *arg)
{