summaryrefslogtreecommitdiff
path: root/vcl/win
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-04-26 08:45:54 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-04-26 11:30:00 +0200
commitec3916d424f828b5b2459efb4097abf95835a2ae (patch)
tree993632d4d1cfc640d6a0cc753a632c0b7c791c55 /vcl/win
parent979e7ec711e475bc1a61f98c074fc3d3656467cf (diff)
Reuse base class IsCurrentThread
Change-Id: Ie185983d7cf546def5e310493c7b26f520bbe08d Reviewed-on: https://gerrit.libreoffice.org/71344 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/win')
-rw-r--r--vcl/win/app/salinst.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/win/app/salinst.cxx b/vcl/win/app/salinst.cxx
index b754dd35d362..c4a290adb092 100644
--- a/vcl/win/app/salinst.cxx
+++ b/vcl/win/app/salinst.cxx
@@ -213,8 +213,7 @@ void ImplSalYieldMutexRelease()
bool SalYieldMutex::IsCurrentThread() const
{
if ( !GetSalData()->mpInstance->m_nNoYieldLock )
- // For the Windows backend, the LO identifier is the system thread ID
- return m_nThreadId == GetCurrentThreadId();
+ return SolarMutex::IsCurrentThread();
else
return GetSalData()->mpInstance->IsMainThread();
}