diff options
-rw-r--r-- | vcl/win/app/saltimer.cxx | 13 |
1 files changed, 3 insertions, 10 deletions
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: */ |