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

Idle: Better place for Idle handling

Change-Id: I2e5462544d83572e8206bb1db92a2b9df032281b
üst e6e8a060
...@@ -346,9 +346,11 @@ inline void ImplYield( bool i_bWait, bool i_bAllEvents ) ...@@ -346,9 +346,11 @@ inline void ImplYield( bool i_bWait, bool i_bAllEvents )
{ {
while ( pSVData->mbNotAllTimerCalled ) while ( pSVData->mbNotAllTimerCalled )
Timer::ImplTimerCallbackProc(); Timer::ImplTimerCallbackProc();
Timer::Timer::ProcessAllIdleHandlers();
} }
//Process all idles
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
// case only dispatch events already available // case only dispatch events already available
......
...@@ -234,7 +234,8 @@ void Timer::ImplTimerCallbackProc( bool idle ) ...@@ -234,7 +234,8 @@ void Timer::ImplTimerCallbackProc( bool idle )
void Timer::ProcessAllIdleHandlers() void Timer::ProcessAllIdleHandlers()
{ {
// process all pending Idle timers // process all pending Idle timers
while (ImplTimerData* pTimerData = ImplTimerData* pTimerData;
while (pTimerData =
ImplTimerData::GetFirstIdle()) ImplTimerData::GetFirstIdle())
{ {
pTimerData->Invoke(); pTimerData->Invoke();
......
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