summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/headless/svpinst.cxx4
-rw-r--r--vcl/osx/salinst.cxx3
2 files changed, 0 insertions, 7 deletions
diff --git a/vcl/headless/svpinst.cxx b/vcl/headless/svpinst.cxx
index 5140b27340b3..4b76f0c3fbec 100644
--- a/vcl/headless/svpinst.cxx
+++ b/vcl/headless/svpinst.cxx
@@ -310,9 +310,7 @@ bool SvpSalInstance::DoYield(bool bWait, bool bHandleAllCurrentEvents, sal_uLong
assert(nReleased == 0); // not implemented
// first, check for already queued events.
- // release yield mutex
std::list< SalUserEvent > aEvents;
- sal_uLong nAcquireCount = ReleaseYieldMutex();
{
osl::MutexGuard g(m_aEventGuard);
if( ! m_aUserEvents.empty() )
@@ -329,8 +327,6 @@ bool SvpSalInstance::DoYield(bool bWait, bool bHandleAllCurrentEvents, sal_uLong
}
}
}
- // acquire yield mutex again
- AcquireYieldMutex( nAcquireCount );
bool bEvent = !aEvents.empty();
if( bEvent )
diff --git a/vcl/osx/salinst.cxx b/vcl/osx/salinst.cxx
index f06504cc9678..4f98d64cdb76 100644
--- a/vcl/osx/salinst.cxx
+++ b/vcl/osx/salinst.cxx
@@ -556,8 +556,6 @@ bool AquaSalInstance::DoYield(bool bWait, bool bHandleAllCurrentEvents, sal_uLon
bool bDispatchUser = true;
while( bDispatchUser )
{
- sal_uLong nCount = ReleaseYieldMutex();
-
// get one user event
SalUserEvent aEvent( nullptr, nullptr, SalEvent::NONE );
{
@@ -571,7 +569,6 @@ bool AquaSalInstance::DoYield(bool bWait, bool bHandleAllCurrentEvents, sal_uLon
else
bDispatchUser = false;
}
- AcquireYieldMutex( nCount );
// dispatch it
if( aEvent.mpFrame && AquaSalFrame::isAlive( aEvent.mpFrame ) )