diff options
author | Philipp Lohmann <pl@openoffice.org> | 2000-12-05 19:14:26 +0000 |
---|---|---|
committer | Philipp Lohmann <pl@openoffice.org> | 2000-12-05 19:14:26 +0000 |
commit | fa7195f68c121adf51392d8e006e0f7e75b082d7 (patch) | |
tree | d6dc1177a92fb0cfd3f99bd6f35a76c72a352b58 /vcl/source/helper/threadex.cxx | |
parent | 96b2ba6649a95ac7cf8693a67e2f2d3678feaefc (diff) |
changed SolarThreadExecutor to release SolarMutex temporarily to avoid deadlocks
Diffstat (limited to 'vcl/source/helper/threadex.cxx')
-rw-r--r-- | vcl/source/helper/threadex.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/vcl/source/helper/threadex.cxx b/vcl/source/helper/threadex.cxx index d33be4f6f355..561ba3dd2c3b 100644 --- a/vcl/source/helper/threadex.cxx +++ b/vcl/source/helper/threadex.cxx @@ -2,9 +2,9 @@ * * $RCSfile: threadex.cxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 17:05:39 $ + * last change: $Author: pl $ $Date: 2000-12-05 20:14:26 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -123,8 +123,11 @@ long SolarThreadExecutor::execute() else { osl_resetCondition( m_aFinish ); + ULONG nSolarMutexCount = Application::ReleaseSolarMutex(); Application::PostUserEvent( LINK( this, SolarThreadExecutor, worker ) ); osl_waitCondition( m_aFinish, NULL ); + if( nSolarMutexCount ) + Application::AcquireSolarMutex( nSolarMutexCount ); } return m_nReturn; } |