> 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