[PATCH] use monotonic timer for timeout in pthread instead of system clock
Thiago Macieira
thiago at kde.org
Sat Oct 18 12:32:03 PDT 2008
Keith Mok wrote:
>+ ? ? ?syscall(__NR_clock_gettime, CLOCK_MONOTONIC, &monotonic_timer);
>+ ? ? ?time_now.tv_sec = monotonic_timer.tv_sec;
>+ ? ? ?time_now.tv_usec = monotonic_timer.tv_nsec / 1000;
Why syscall instead of the POSIX clock_gettime and clock_getres functions?
The chances of those working outside Linux are larger than 0%.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/dbus/attachments/20081018/527a16f7/attachment.pgp
More information about the dbus
mailing list