2005-05-20 Matthias Clasen <mclasen@redhat.com>
* glib/tmpl/threads.sgml: Add a paragraph about thread
safety of GLib data structures.
2005-05-20 Matthias Clasen <mclasen@redhat.com>
+ * glib/tmpl/threads.sgml: Add a paragraph about thread
+ safety of GLib data structures.
+
* glib/compiling.sgml: Update an example from 1.3 to 2.x
2005-05-13 Matthias Clasen <mclasen@redhat.com>
primitives to portably create and manage threads (#GThread).
</para>
+<para>
+You must call g_thread_init() before executing any other GLib functions
+in a threaded GLib program. After that, GLib is completely thread safe
+(all global data is automatically locked). But individual data structure
+instances are not automatically locked for performance reasons. So e.g.
+you must coordinate accesses to the same #GHashTable from multiple threads.
+</para>
+
<!-- ##### SECTION See_Also ##### -->
<para>
<variablelist>