Re: function g_cond_timed_wait is not safe when change of datetime?
- From: "Tor Lillqvist" <tml iki fi>
- To: "Chris Vine" <chris cvine freeserve co uk>
- Cc: gtk-list gnome org, 陈杰 <chenj lemote com>
- Subject: Re: function g_cond_timed_wait is not safe when change of datetime?
- Date: Fri, 21 Nov 2008 14:45:35 +0200
> The system clock can be altered by a privileged user (for obvious
> reasons - you need to be able to set it to the current time every now
> and then to accommodate clock drift).
Isn't that handled on modern systems (once the time has been set
roughly correct, typically at boot time, to within a minute, say) by
just speeding up or slowing down the clock, not by stepping it? See
adjtime(). SetSystemTimeAdjustment() seems to be the corresponding
thing on Win32.
--tml
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]