From 69977ed917a92d9b07f3429312077357d3aa10fa Mon Sep 17 00:00:00 2001 From: Jan-Marek Glogowski Date: Sun, 30 Oct 2016 02:02:10 +0100 Subject: WIN just wait for the Yield mutex in the timerout Don't re-schedule a timeout, simply wait in the timer callback. Change-Id: Ib46eb6dbf57f29c85ffdbd6492922020f7785d30 --- vcl/win/app/saltimer.cxx | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'vcl') diff --git a/vcl/win/app/saltimer.cxx b/vcl/win/app/saltimer.cxx index af379700c5bd..2ddb34b8f0b6 100644 --- a/vcl/win/app/saltimer.cxx +++ b/vcl/win/app/saltimer.cxx @@ -154,16 +154,9 @@ void EmitTimerCallback() if ( ! pSVData->maSchedCtx.mpSalTimer ) return; - // Try to acquire the mutex. If we don't get the mutex then we - // try this a short time later again. - if (ImplSalYieldMutexTryToAcquire()) - { - pSVData->maSchedCtx.mpSalTimer->CallCallback(); - - ImplSalYieldMutexRelease(); - } - else - ImplSalStartTimer( 10 ); + ImplSalYieldMutexAcquireWithWait(); + pSVData->maSchedCtx.mpSalTimer->CallCallback(); + ImplSalYieldMutexRelease(); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit