[vlc-devel] [PATCH 5/6] timer: add a macro to fire a timer as soon as possible
robux4 at ycbcr.xyz
Thu Jul 5 15:22:52 CEST 2018
Right now it's supposed to wait for 1 tick but it might be started right away.
include/vlc_threads.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/vlc_threads.h b/include/vlc_threads.h
index 14cf360d2a..f937a3a95c 100644
@@ -974,6 +974,9 @@ VLC_API void vlc_timer_schedule(vlc_timer_t timer, bool absolute,
#define vlc_timer_disarm(timer) vlc_timer_schedule( timer, false, 0, 0 )
+#define vlc_timer_schedule_asap(timer, interval) \
+ vlc_timer_schedule(timer, false, 1, interval)
* Fetches and resets the overrun counter for a timer.
More information about the vlc-devel