Commit f62667c2 authored by Steve Lhomme's avatar Steve Lhomme Committed by Rémi Denis-Courmont

vlc_threads: base mtime_t sleep defines on CLOCK_FREQ

Signed-off-by: Rémi Denis-Courmont's avatarRémi Denis-Courmont <remi@remlab.net>
parent 843a9b24
......@@ -858,8 +858,8 @@ VLC_API void mwait(mtime_t deadline);
*/
VLC_API void msleep(mtime_t delay);
#define VLC_HARD_MIN_SLEEP 10000 /* 10 milliseconds = 1 tick at 100Hz */
#define VLC_SOFT_MIN_SLEEP 9000000 /* 9 seconds */
#define VLC_HARD_MIN_SLEEP (CLOCK_FREQ/100) /* 10 milliseconds = 1 tick at 100Hz */
#define VLC_SOFT_MIN_SLEEP (9*CLOCK_FREQ) /* 9 seconds */
#if defined (__GNUC__) && !defined (__clang__)
/* Linux has 100, 250, 300 or 1000Hz
......
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