summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2008-05-30 10:31:29 +0000
committerOliver Bolte <obo@openoffice.org>2008-05-30 10:31:29 +0000
commit47ac3b34cc5c18eadbcb5ff829c9ef41a12e2b5c (patch)
tree35d1527112567f079d1b2139fa147597230561ed /fpicker
parentb8fbc9afdac2535b22017049ff961bf62d32d105 (diff)
INTEGRATION: CWS hro35_DEV300 (1.3.14); FILE MERGED
2008/05/26 09:32:58 hro 1.3.14.1: #87244# Prevent blocking of main VCL thread
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/win32/filepicker/asyncrequests.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/fpicker/source/win32/filepicker/asyncrequests.cxx b/fpicker/source/win32/filepicker/asyncrequests.cxx
index 73171d7794..7c57b2caa1 100644
--- a/fpicker/source/win32/filepicker/asyncrequests.cxx
+++ b/fpicker/source/win32/filepicker/asyncrequests.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: asyncrequests.cxx,v $
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
* This file is part of OpenOffice.org.
*
@@ -29,6 +29,7 @@
************************************************************************/
#include "asyncrequests.hxx"
+#include <vcl/svapp.hxx>
//-----------------------------------------------------------------------------
// namespace
@@ -44,6 +45,8 @@ namespace css = ::com::sun::star;
void lcl_sleep(::osl::Condition& aCondition ,
::sal_Int32 nMilliSeconds)
{
+ ULONG nAcquireCount = Application::ReleaseSolarMutex();
+
if (nMilliSeconds < 1)
aCondition.wait(0);
else
@@ -53,6 +56,8 @@ void lcl_sleep(::osl::Condition& aCondition ,
aTime.Nanosec = (nMilliSeconds % 1000);
aCondition.wait(&aTime);
}
+
+ Application::AcquireSolarMutex( nAcquireCount );
}
//-----------------------------------------------------------------------------