... and what if it fails? I'd say that requiring CLOCK_MONOTONIC is fine.

Are there any popular Linux setups that don't have CLOCK_MONOTONIC?


On Tue, Feb 18, 2014 at 10:13 PM, Thiago Macieira <thi...@kde.org> wrote:

> Em qua 19 fev 2014, às 08:47:32, Peter Hutterer escreveu:
> > +       libevdev_set_clock_id(device->evdev, CLOCK_MONOTONIC);
>
> What happens if the monotonic clock isn't supported? Shouldn't you check
> that
> sysconf(_SC_MONOTONIC_CLOCK) > 0 ?
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
>    Software Architect - Intel Open Source Technology Center
>       PGP/GPG: 0x6EF45358; fingerprint:
>       E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
>



-- 
  Jasper
_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to