diff options
author | Pranav Kant <pranav913@gmail.com> | 2015-03-17 12:56:54 +0530 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-20 12:18:02 +0000 |
commit | 33de587e95dddfc8e3c89b84f90b3d1bca823dae (patch) | |
tree | c65ada218c27ae4f2e80b4e3476b67c8e4554ef8 /fpicker | |
parent | 9e2e9453cbca9399e1c670b354cfc3c23d70307f (diff) |
tdf#88230: cleanup solar mutex yielding
Use SolarMutexReleaser, instead.
Change-Id: I276459c42b688813ea168d6fc80466a07a5ecba4
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/win32/filepicker/asyncrequests.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fpicker/source/win32/filepicker/asyncrequests.cxx b/fpicker/source/win32/filepicker/asyncrequests.cxx index e8ca9bcc64d4..87e53fac2c48 100644 --- a/fpicker/source/win32/filepicker/asyncrequests.cxx +++ b/fpicker/source/win32/filepicker/asyncrequests.cxx @@ -28,7 +28,7 @@ namespace vista{ static void lcl_sleep( ::osl::Condition& aCondition, ::sal_Int32 nMilliSeconds ) { - sal_uLong nAcquireCount = Application::ReleaseSolarMutex(); + SolarMutexReleaser aReleaser; if (nMilliSeconds < 1) aCondition.wait(0); @@ -39,8 +39,6 @@ static void lcl_sleep( ::osl::Condition& aCondition, aTime.Nanosec = (nMilliSeconds % 1000) * 1000000; aCondition.wait(&aTime); } - - Application::AcquireSolarMutex( nAcquireCount ); } void Request::wait( ::sal_Int32 nMilliSeconds ) |