summaryrefslogtreecommitdiff
path: root/vcl/win
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-03-20 18:10:51 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-03-20 18:10:51 +0100
commitad28ffaa37e87d8d4f57dbfd5ed2eb3aae918d68 (patch)
tree39b9ab4c7800cd886ea0ce4c5478a172c3f9122f /vcl/win
parent36be3d94c2e142d01c026a93fa88454cb5316bff (diff)
Remove unnecessary vcl::SolarMutexObject
Change-Id: I6dfdd7d5d211b66019dfbe364101140e28a3584d
Diffstat (limited to 'vcl/win')
-rw-r--r--vcl/win/source/app/salinst.cxx17
1 files changed, 9 insertions, 8 deletions
diff --git a/vcl/win/source/app/salinst.cxx b/vcl/win/source/app/salinst.cxx
index 602ee8a9bc69..e831106c998d 100644
--- a/vcl/win/source/app/salinst.cxx
+++ b/vcl/win/source/app/salinst.cxx
@@ -30,7 +30,6 @@
#include <vcl/timer.hxx>
#include <vcl/apptypes.hxx>
-#include <vcl/solarmutex.hxx>
#include <win/wincomp.hxx>
#include <win/salids.hrc>
#include <win/saldata.hxx>
@@ -110,8 +109,10 @@ LRESULT CALLBACK SalComWndProcW( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lPa
-class SalYieldMutex : public vcl::SolarMutexObject
+class SalYieldMutex : public comphelper::SolarMutex
{
+ osl::Mutex m_mutex;
+
public: // for ImplSalYield()
WinSalInstance* mpInstData;
sal_uLong mnCount;
@@ -140,7 +141,7 @@ SalYieldMutex::SalYieldMutex( WinSalInstance* pInstData )
void SalYieldMutex::acquire()
{
- SolarMutexObject::acquire();
+ m_mutex.acquire();
mnCount++;
mnThreadId = GetCurrentThreadId();
}
@@ -151,7 +152,7 @@ void SalYieldMutex::release()
{
DWORD nThreadId = GetCurrentThreadId();
if ( mnThreadId != nThreadId )
- SolarMutexObject::release();
+ m_mutex.release();
else
{
SalData* pSalData = GetSalData();
@@ -168,13 +169,13 @@ void SalYieldMutex::release()
ImplPostMessage( mpInstData->mhComWnd, SAL_MSG_RELEASEWAITYIELD, 0, 0 );
mnThreadId = 0;
mnCount--;
- SolarMutexObject::release();
+ m_mutex.release();
mpInstData->mpSalWaitMutex->release();
}
else
{
mnCount--;
- SolarMutexObject::release();
+ m_mutex.release();
}
}
else
@@ -182,7 +183,7 @@ void SalYieldMutex::release()
if ( mnCount == 1 )
mnThreadId = 0;
mnCount--;
- SolarMutexObject::release();
+ m_mutex.release();
}
}
}
@@ -191,7 +192,7 @@ void SalYieldMutex::release()
bool SalYieldMutex::tryToAcquire()
{
- if( SolarMutexObject::tryToAcquire() )
+ if( m_mutex.tryToAcquire() )
{
mnCount++;
mnThreadId = GetCurrentThreadId();