[PATCH] use CLOCK_MONOTONIC_COARSE posix timer instead of CLOCK_MONOTONIC in Xorg
ykzhao
yakui.zhao at intel.com
Mon Aug 23 18:15:57 PDT 2010
On Tue, 2010-08-24 at 09:16 +0800, Samuel Thibault wrote:
> ykzhao, le Tue 24 Aug 2010 09:07:49 +0800, a écrit :
> > + static clockid_t clockid;
> > + if (!clockid) {
> > +#ifdef __linux__
> > +#ifndef CLOCK_MONONOTIC_COARSE
> > +#define CLOCK_MONOTONIC_COARSE
>
> If you don't provide the value 6 here, it's completely useless.
Yes. You are right. It should be "#define CLOCK_MONOTONIC_COARSE 6".
Sorry for my fault.
Thanks.
Yakui
>
> > +#endif
> > + if ((clock_getres(CLOCK_MONOTONIC_COARSE, &tp) == 0) &&
>
> Samuel
More information about the xorg-devel
mailing list