diff options
author | sb <sb@openoffice.org> | 2010-03-22 10:52:35 +0100 |
---|---|---|
committer | sb <sb@openoffice.org> | 2010-03-22 10:52:35 +0100 |
commit | cb5e4d69f0c8539ef8d60d8c5cd3e50bb6acdc2f (patch) | |
tree | 3644cda29bc9166b7b60ec7d9bab56ede9a3efce /vcl | |
parent | 565e75d190edd54fc975dd5fb9a868038643e10c (diff) |
sb121: acquire solar mutex around Application::Reschedule
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/source/dtrans/X11_selection.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/unx/source/dtrans/X11_selection.cxx b/vcl/unx/source/dtrans/X11_selection.cxx index 2d63489dac3d..7f205407b21b 100644 --- a/vcl/unx/source/dtrans/X11_selection.cxx +++ b/vcl/unx/source/dtrans/X11_selection.cxx @@ -70,6 +70,7 @@ #include <osl/process.h> #include <comphelper/processfactory.hxx> +#include <vos/mutex.hxx> #define DRAG_EVENT_MASK ButtonPressMask |\ ButtonReleaseMask |\ @@ -3807,7 +3808,10 @@ void SelectionManager::shutdown() throw() */ aGuard.clear(); while (osl_isThreadRunning(m_aThread)) + { + vos::OGuard guard2(Application::GetSolarMutex()); Application::Reschedule(); + } osl_joinWithThread( m_aThread ); osl_destroyThread( m_aThread ); m_aThread = NULL; |