Tentative implementation of thread_wait_mutex() on Win32 threads.
This commit is contained in:
@@ -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
|
int
|
||||||
thread_wait(thread_t *arg)
|
thread_wait(thread_t *arg)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user