Document the necessity to call g_thread_init() when using threads (even
authorMatthias Clasen <mclasen@redhat.com>
Thu, 12 Aug 2004 15:00:35 +0000 (15:00 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Thu, 12 Aug 2004 15:00:35 +0000 (15:00 +0000)
2004-08-12  Matthias Clasen  <mclasen@redhat.com>

* glib/tmpl/threads.sgml: Document the necessity to call
g_thread_init() when using threads
(even non-gthreads).  (#149490, Vincent Untz)

docs/reference/ChangeLog
docs/reference/glib/tmpl/threads.sgml

index 38d8ec2..bcd21e1 100644 (file)
@@ -1,3 +1,10 @@
+2004-08-12  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/tmpl/threads.sgml: Document the necessity to call
+       g_thread_init() when using threads 
+       (even non-gthreads).  (#149490, Vincent Untz)
+
+
 Tue Aug  3 16:43:22 2004  Matthias Clasen  <maclas@gmx.de>
 
        * glib/glib-sections.txt: Add a section for GOption.
index c1bc4f3..72104c4 100644 (file)
@@ -142,10 +142,9 @@ This struct should only be used, if you know, what you are doing.
 <!-- ##### FUNCTION g_thread_init ##### -->
 
 <para>
-Before you use a thread related function in GLib, you should
-initialize the thread system. This is done by calling
-g_thread_init(). Most of the time you will only have to call
-<literal>g_thread_init(NULL)</literal>. 
+If you use GLib from more than one thread, you must initialize
+the thread system by calling g_thread_init(). Most of the time you 
+will only have to call <literal>g_thread_init (NULL)</literal>. 
 </para>
 
 <note>