summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-07-01 23:43:12 +0200
committerMichael Stahl <mstahl@redhat.com>2015-07-02 00:00:08 +0200
commitc18f11587d37f285a95447dd8996c8b605732e00 (patch)
tree60612c6748e85117d9d2000d83cbd9046f9ba648 /fpicker
parentd9c476bfbb4a8f1858c072d2fba33aa9e8e0ae92 (diff)
tdf#92460: fpicker: fix VistaFilePicker using SolarMutexReleaser
... on a thread that doesn't ever lock SolarMutex. Assume that Request::wait(), eventually called by UNO methods via AsyncRequests::triggerRequestThreadAware(), is called by the UI thread with the SolarMutex held. Change-Id: Ie3e6f32ed68e48f8c67d80cd9d2ce2f79e4578d8
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/win32/filepicker/asyncrequests.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/fpicker/source/win32/filepicker/asyncrequests.cxx b/fpicker/source/win32/filepicker/asyncrequests.cxx
index 87e53fac2c48..089beca54d4a 100644
--- a/fpicker/source/win32/filepicker/asyncrequests.cxx
+++ b/fpicker/source/win32/filepicker/asyncrequests.cxx
@@ -28,8 +28,6 @@ namespace vista{
static void lcl_sleep( ::osl::Condition& aCondition,
::sal_Int32 nMilliSeconds )
{
- SolarMutexReleaser aReleaser;
-
if (nMilliSeconds < 1)
aCondition.wait(0);
else
@@ -43,6 +41,8 @@ static void lcl_sleep( ::osl::Condition& aCondition,
void Request::wait( ::sal_Int32 nMilliSeconds )
{
+ SolarMutexReleaser aReleaser;
+
lcl_sleep( m_aJoiner, nMilliSeconds );
}