[vlc-devel] [PATCH] src: darwin/thread: reimplement monotonic clock for darwin

Gilles Chanteperdrix gilles.chanteperdrix at xenomai.org
Mon Jan 6 21:40:01 CET 2014


On 01/06/2014 08:10 PM, Rémi Denis-Courmont wrote:
> Sure, nanosleep() is allowed to use the monotonic clock,

No, nanosleep is supposed to be based on CLOCK_REALTIME, if you want to
use CLOCK_MONOTONIC, you have to use clock_nanosleep.

-- 
                                                                Gilles.



More information about the vlc-devel mailing list