From 0162bbdfcefb1aee69feaf98dfb614cfa6105fe0 Mon Sep 17 00:00:00 2001 From: Tim Janik Date: Tue, 10 Jul 2007 10:49:00 +0000 Subject: [PATCH] fixed typos spotted by Richard Hult svn path=/trunk/; revision=5619 --- docs/reference/glib/tmpl/threads.sgml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/reference/glib/tmpl/threads.sgml b/docs/reference/glib/tmpl/threads.sgml index 274a9a1..73f0129 100644 --- a/docs/reference/glib/tmpl/threads.sgml +++ b/docs/reference/glib/tmpl/threads.sgml @@ -1727,7 +1727,7 @@ The argument value_location must point to a static 0-initialized variable that will be set to a value other than 0 at the end of the initialization section. In combination with g_once_init_leave() and the unique address value_location, it can be ensured that an initialization section will be executed only once -during a programs life time, and that concurrent threads are blocked until +during a program's life time, and that concurrent threads are blocked until initialization completed. To be used in constructs like this: @@ -1740,12 +1740,13 @@ if (g_once_init_enter (&initialization_value)) // section start gsize setup_value = 42; // initialization code here g_once_init_leave (&initialization_value, setup_value); // section end } +// use initialization_value here @value_location: location of a static initializable variable containing 0. -@Returns: %TRUE if the initialization section should be netered, %FALSE and blocks otheriwse +@Returns: %TRUE if the initialization section should be entered, %FALSE and blocks otheriwse @Since: 2.14 -- 2.7.4