Re: nanosleep() uses CLOCK_MONOTONIC, should be CLOCK_REALTIME?

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Michael Kerrisk <mtk.manpages@...>
Cc: Bart Van Assche <bart.vanassche@...>, Michael Kerrisk <mtk.manpages@...>, lkml <linux-kernel@...>, Thomas Gleixner <tglx@...>, john stultz <johnstul@...>, Ingo Molnar <mingo@...>
Date: Monday, June 23, 2008 - 8:43 am

Hi,

On Mon, 23 Jun 2008, Michael Kerrisk wrote:


CLOCK_MONOTONIC is optional, that's probably the reason it's not mentioned 
there. If you check the man page for clock_settime, it specifically 
mentions that pending relative timer (including nanosleep) aren't affected 
by the changed time, thus if CLOCK_MONOTONIC and CLOCK_REALTIME advance 
equally, it doesn't matter which you use for relative timer.

bye, Roman
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
nanosleep() uses CLOCK_MONOTONIC, should be CLOCK_REALTIME?, Michael Kerrisk, (Sun Jun 22, 3:35 am)
Re: nanosleep() uses CLOCK_MONOTONIC, should be CLOCK_REALTI..., Roman Zippel, (Mon Jun 23, 8:43 am)