[PATCH_v2] use CLOCK_MONOTONIC_COARSE posix timer instead of CLOCK_MONOTONIC in Xorg
Michel Dänzer
michel at daenzer.net
Fri Aug 27 01:04:06 PDT 2010
On Don, 2010-08-26 at 20:36 -0700, Jeremy Huddleston wrote:
> On Aug 26, 2010, at 18:20, yakui.zhao at intel.com wrote:
> > #ifdef MONOTONIC_CLOCK
> > struct timespec tp;
> > - if (clock_gettime(CLOCK_MONOTONIC, &tp) == 0)
> > + static clockid_t clockid;
>
> static clockid_t clockid = 0;
static variables are implicitly initialized to 0.
--
Earthling Michel Dänzer | http://www.vmware.com
Libre software enthusiast | Debian, X and DRI developer
More information about the xorg-devel
mailing list