Kaydet (Commit) e6e8a060 authored tarafından Tobias Madl's avatar Tobias Madl

Timer: first independend idle use

Change-Id: I27985e456447ef3d71cae39c2acaf59b3aa60b83
üst 9e678c14
...@@ -343,8 +343,11 @@ inline void ImplYield( bool i_bWait, bool i_bAllEvents ) ...@@ -343,8 +343,11 @@ inline void ImplYield( bool i_bWait, bool i_bAllEvents )
// run timers that have timed out // run timers that have timed out
if ( !pSVData->mbNoCallTimer ) if ( !pSVData->mbNoCallTimer )
{
while ( pSVData->mbNotAllTimerCalled ) while ( pSVData->mbNotAllTimerCalled )
Timer::ImplTimerCallbackProc( !i_bWait ); Timer::ImplTimerCallbackProc();
Timer::Timer::ProcessAllIdleHandlers();
}
pSVData->maAppData.mnDispatchLevel++; pSVData->maAppData.mnDispatchLevel++;
// do not wait for events if application was already quit; in that // do not wait for events if application was already quit; in that
......
...@@ -151,7 +151,7 @@ void Timer::ImplTimerCallbackProc( bool idle ) ...@@ -151,7 +151,7 @@ void Timer::ImplTimerCallbackProc( bool idle )
// If the timer is not new, was not deleted, and if it is not in the timeout handler, then // If the timer is not new, was not deleted, and if it is not in the timeout handler, then
// call the handler as soon as the time is up. // call the handler as soon as the time is up.
if ( (pTimerData->mnTimerUpdate < pSVData->mnTimerUpdate) && if ( (pTimerData->mnTimerUpdate < pSVData->mnTimerUpdate) &&
!pTimerData->mbDelete && !pTimerData->mbInTimeout && (!pTimerData->mpTimer->mbIdle || idle) ) !pTimerData->mbDelete && !pTimerData->mbInTimeout && !pTimerData->mpTimer->mbIdle)
{ {
// time has expired // time has expired
if ( pTimerData->GetDeadline() <= nTime ) if ( pTimerData->GetDeadline() <= nTime )
......
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