Kaydet (Commit) e3a74864 authored tarafından Michael Stahl's avatar Michael Stahl

sal: make osl_joinWithThread() a little more consistent

If the Win32 implementation deadlocks on a self-join, at least assert in
the same situation on UNIX.

Change-Id: I1b9e3da95837d456e6933e8fd9a256869cb4bde9
üst b8eeefeb
......@@ -438,6 +438,7 @@ void SAL_CALL osl_joinWithThread(oslThread Thread)
if (pthread_equal (pthread_self(), pImpl->m_hThread))
{
assert(false); // Win32 implementation would deadlock here!
/* self join */
pthread_mutex_unlock (&(pImpl->m_Lock));
return; /* EDEADLK */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment