libwinpr: attempt to fix TerminateThread(...).

The following sequence should not hang forever anymore: TerminateThread(thread, 0); WaitForSingleObject(thread, INFINTE);
This commit is contained in:
Emmanuel Ledoux 2015-01-27 21:05:40 +01:00 committed by eledoux
parent 447ea28afa
commit ab4a744b08

View File

@ -580,6 +580,7 @@ BOOL TerminateThread(HANDLE hThread, DWORD dwExitCode)
WLog_ERR(TAG, "Function not supported on this platform!");
#endif
pthread_mutex_unlock(&thread->mutex);
set_event(thread);
return TRUE;
}