[PATCH] use montonic clock instead of gettimeofday
Tom Hughes
Tom.Hughes at palm.com
Thu Dec 10 09:27:23 PST 2009
Greetings,
Attached is a patch to use the monotonic clock instead of
gettimeofday() in _dbus_get_current_time(), which prevents issues when
_dbus_get_current_time() is used to calculate timeouts and the system
time changes (e.g., in _dbus_connection_block_pending_call()).
It also contains a patch for pthread_cond_timedwait to use the
monotonic clock, but this appears to have already been fixed, so you
can ignore that part of the patch.
It's based off dbus version 1.1.20, but should apply to top of trunk.
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dbus-monotonic-clock.patch
Type: application/octet-stream
Size: 3955 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20091210/55f5ce69/attachment.obj
-------------- next part --------------
More information about the dbus
mailing list