[PATCH] use CLOCK_MONOTONIC_COARSE posix timer instead of CLOCK_MONOTONIC in Xorg

Adam Jackson ajax at nwnk.net
Mon Aug 23 08:25:04 PDT 2010


On Mon, 2010-08-23 at 10:23 +0200, Mark Kettenis wrote:
> > From: yakui.zhao at intel.com
> > Date: Mon, 23 Aug 2010 15:20:05 +0800
> > From: Zhao Yakui <yakui.zhao at intel.com>
> > 
> > ---
> >  os/utils.c |   14 +++++++++++++-
> >  1 files changed, 13 insertions(+), 1 deletions(-)
> > 
> > diff --git a/os/utils.c b/os/utils.c
> > index 51455cc..a08d591 100644
> > --- a/os/utils.c
> > +++ b/os/utils.c
> > @@ -242,6 +242,10 @@ OsSignal(int sig, OsSigHandlerPtr handler)
> >  #endif
> >  #endif
> >  
> > +#ifndef CLOCK_MONOTONIC_COARSE
> > +#define CLOCK_MONOTONIC_COARSE 6
> > +#endif
> 
> What if an OS doesn't have CLOCK_MONOTONIC_COARSE, but uses the clock
> ID 6 for some other purpose?

Then this patch would be wrong.

NAK on that basis.

- ajax
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100823/48b6212f/attachment.pgp>


More information about the xorg-devel mailing list