From: Matthias Clasen Date: Tue, 8 Jul 2003 23:43:47 +0000 (+0000) Subject: Support for one-time initialization functions. (#69668, Sebastian X-Git-Tag: GLIB_2_3_0~149 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fe5c4f3e505da395e9fc76560aba210aa87767ea;p=platform%2Fupstream%2Fglib.git Support for one-time initialization functions. (#69668, Sebastian 2003-07-09 Matthias Clasen Support for one-time initialization functions. (#69668, Sebastian Wilhelmi) * configure.in: Check whether double checked locking is safe, define g_once() in glibconfig.h accordingly. * glib/gthread.h: Add GOnce, GOnceStatus, G_ONCE_INIT and g_once_impl. * glib/gthread.c (g_once_impl): Fallback implementation using a mutex if double checked locking is unsafe. * tests/thread-test.c: Add tests for g_once(). --- diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index 8a7161e..96d503a 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,9 @@ +2003-07-09 Matthias Clasen + + * glib/tmpl/threads.sgml: Document GOnce, GOnceStatus, G_ONCE_INIT, g_once and g_once_impl. + + * glib/glib-sections.txt: Add GOnce, GOnceStatus, G_ONCE_INIT, g_once and g_once_impl. + 2003-07-02 Matthias Clasen * glib/tmpl/string_utils.sgml: Move g_strfreev() docs inline.