<div dir="ltr"><div>... and what if it fails? I'd say that requiring CLOCK_MONOTONIC is fine.<br><br></div>Are there any popular Linux setups that don't have CLOCK_MONOTONIC?<br></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Tue, Feb 18, 2014 at 10:13 PM, Thiago Macieira <span dir="ltr"><<a href="mailto:thiago@kde.org" target="_blank">thiago@kde.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Em qua 19 fev 2014, às 08:47:32, Peter Hutterer escreveu:<br>
> +       libevdev_set_clock_id(device->evdev, CLOCK_MONOTONIC);<br>
<br>
What happens if the monotonic clock isn't supported? Shouldn't you check that<br>
sysconf(_SC_MONOTONIC_CLOCK) > 0 ?<br>
<span class="HOEnZb"><font color="#888888">--<br>
Thiago Macieira - thiago (AT) <a href="http://macieira.info" target="_blank">macieira.info</a> - thiago (AT) <a href="http://kde.org" target="_blank">kde.org</a><br>
   Software Architect - Intel Open Source Technology Center<br>
      PGP/GPG: 0x6EF45358; fingerprint:<br>
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
wayland-devel mailing list<br>
<a href="mailto:wayland-devel@lists.freedesktop.org">wayland-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>  Jasper<br>
</div>