X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d45242a64a347a84b0c9213d4adcd732ece39cb3..f7ae43f080576ef142d3884073df298294860328:/src/unix/timerunx.cpp diff --git a/src/unix/timerunx.cpp b/src/unix/timerunx.cpp index c3c563af04..d6ee503df5 100644 --- a/src/unix/timerunx.cpp +++ b/src/unix/timerunx.cpp @@ -134,10 +134,12 @@ bool wxTimerScheduler::GetNext(wxUsecClock_t *remaining) const return true; } -void wxTimerScheduler::NotifyExpired() +bool wxTimerScheduler::NotifyExpired() { if ( m_timers.empty() ) - return; + return false; + + bool notified = false; const wxUsecClock_t now = wxGetLocalTimeUsec(); @@ -182,7 +184,10 @@ void wxTimerScheduler::NotifyExpired() // and finally notify the timer timer->Notify(); + notified = true; } + + return notified; } // ============================================================================