[PATCH libinput] evdev: set CLOCK_MONOTONIC as the time source

Jasper St. Pierre jstpierre at mecheye.net
Tue Feb 18 19:33:26 PST 2014


... 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 <thiago at 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 at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
>



-- 
  Jasper
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20140218/ea76128a/attachment.html>


More information about the wayland-devel mailing list