ms vc compat...

This commit is contained in:
Tino Reichardt
2016-10-18 11:43:19 +02:00
parent 58069903d0
commit 5a3244dd01
2 changed files with 4 additions and 2 deletions

View File

@@ -52,10 +52,12 @@ pthread_create(pthread_t * thread, const void *unused,
int _pthread_join(pthread_t * thread, void **value_ptr) int _pthread_join(pthread_t * thread, void **value_ptr)
{ {
DWORD result;
if (!thread->handle) if (!thread->handle)
return 0; return 0;
DWORD result = WaitForSingleObject(thread->handle, INFINITE); result = WaitForSingleObject(thread->handle, INFINITE);
switch (result) { switch (result) {
case WAIT_OBJECT_0: case WAIT_OBJECT_0:
if (value_ptr) if (value_ptr)