From e3a74864a02d2ed362f7bfb82c5ce6068b908101 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Tue, 4 Aug 2015 23:40:23 +0200 Subject: 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 --- sal/osl/unx/thread.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'sal/osl/unx/thread.cxx') diff --git a/sal/osl/unx/thread.cxx b/sal/osl/unx/thread.cxx index 3327229d8eb4..0b0316697d5c 100644 --- a/sal/osl/unx/thread.cxx +++ b/sal/osl/unx/thread.cxx @@ -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 */ -- cgit