Kaydet (Commit) ec3916d4 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Reuse base class IsCurrentThread

Change-Id: Ie185983d7cf546def5e310493c7b26f520bbe08d
Reviewed-on: https://gerrit.libreoffice.org/71344
Tested-by: Jenkins
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 979e7ec7
...@@ -213,8 +213,7 @@ void ImplSalYieldMutexRelease() ...@@ -213,8 +213,7 @@ void ImplSalYieldMutexRelease()
bool SalYieldMutex::IsCurrentThread() const bool SalYieldMutex::IsCurrentThread() const
{ {
if ( !GetSalData()->mpInstance->m_nNoYieldLock ) if ( !GetSalData()->mpInstance->m_nNoYieldLock )
// For the Windows backend, the LO identifier is the system thread ID return SolarMutex::IsCurrentThread();
return m_nThreadId == GetCurrentThreadId();
else else
return GetSalData()->mpInstance->IsMainThread(); return GetSalData()->mpInstance->IsMainThread();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment