GCond: use monotonic time for timed waits
authorRyan Lortie <desrt@desrt.ca>
Fri, 14 Oct 2011 03:24:23 +0000 (23:24 -0400)
committerRyan Lortie <desrt@desrt.ca>
Fri, 14 Oct 2011 03:44:17 +0000 (23:44 -0400)
commit4033c616ff23eb1e647a0b0cd13ac54f28e1242b
tree9c14e7521bec82d7ca042f154a24618c899dfcfc
parentfd382156b80a0ba848d6de7e009337fdb32221d9
GCond: use monotonic time for timed waits

Switch GCond to using monotonic time for timed waits by introducing a
new API based on monotonic time in a gint64: g_cond_wait_until().

Deprecate the old API based on wallclock time in a GTimeVal.

Fix up the gtk-doc for GCond while we're at it: update the examples to
use static-allocated GCond and GMutex and clarify some things a bit.
Also explain the rationale behind using an absolute time instead of a
relative time.
docs/reference/glib/glib-sections.txt
glib/deprecated/gthread-deprecated.c
glib/deprecated/gthread.h
glib/glib.symbols
glib/gthread-posix.c
glib/gthread-win32.c
glib/gthread.c
glib/gthread.h