Re: function g_cond_timed_wait is not safe when change of datetime?
- From: "Tor Lillqvist" <tml iki fi>
- To: "陈杰" <chenj lemote com>
- Cc: gtk-list gnome org
- Subject: Re: function g_cond_timed_wait is not safe when change of datetime?
- Date: Fri, 21 Nov 2008 12:34:47 +0200
> Say, the following code will cause the current process block for very long time:
Of course it will. Why are you surprised by that? The
g_cond_timed_wait() function can't know that if you say "wait until
this specific time" you don't actually mean it. If you have a machine
where the time of day clock is randomly jumping back and forth all the
time, you surely need to fix that then.
--tml
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]