vlc | branch: master | Steve Lhomme <[email protected]> | Thu Jul 5 14:52:23 2018 +0200| [b554299e6ee402deb5f93ba32b690f0351cbd09a] | committer: Steve Lhomme
timer: add a macro to fire a timer as soon as possible Right now it's supposed to wait for 1 tick but it might be started right away. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b554299e6ee402deb5f93ba32b690f0351cbd09a --- include/vlc_threads.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/vlc_threads.h b/include/vlc_threads.h index ae6b57e68c..4bd71e01b4 100644 --- a/include/vlc_threads.h +++ b/include/vlc_threads.h @@ -977,6 +977,11 @@ static inline void vlc_timer_disarm(vlc_timer_t timer) vlc_timer_schedule( timer, false, VLC_TIMER_DISARM, 0 ); } +static inline void vlc_timer_schedule_asap(vlc_timer_t timer, vlc_tick_t interval) +{ + vlc_timer_schedule(timer, false, 1, interval); +} + /** * Fetches and resets the overrun counter for a timer. * _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
