Fixed mutex trylock in MutexCloseHandle.

This commit is contained in:
Armin Novak 2015-06-25 12:24:28 +02:00
parent a4c9a7f604
commit b81aaa9cc2
1 changed files with 2 additions and 0 deletions

View File

@ -73,6 +73,8 @@ BOOL MutexCloseHandle(HANDLE handle)
rc = pthread_mutex_trylock(&mutex->mutex);
switch(rc)
{
case 0: /* The mutex is now locked. */
break;
/* If we already own the mutex consider it a success. */
case EDEADLK:
case EBUSY: