diff options
author | Oliver Bolte <obo@openoffice.org> | 2008-05-30 10:31:29 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2008-05-30 10:31:29 +0000 |
commit | 408727b21c337b261a495c39813007eb6989816c (patch) | |
tree | 660a43c9c6340b3bf90e16c8c1a1ba7ecc82f3b9 /fpicker | |
parent | c6cc90c2816e684f33c84e35992356606d212664 (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.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fpicker/source/win32/filepicker/asyncrequests.cxx b/fpicker/source/win32/filepicker/asyncrequests.cxx index ac0bc984e08e..cc7de0bdcc3b 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 ); } //----------------------------------------------------------------------------- |