Point out exceptions to the general GLib data structure locking rules.
authorMatthias Clasen <mclasen@redhat.com>
Mon, 23 May 2005 19:10:54 +0000 (19:10 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 23 May 2005 19:10:54 +0000 (19:10 +0000)
2005-05-23  Matthias Clasen  <mclasen@redhat.com>

* glib/tmpl/threads.sgml: Point out exceptions to the
general GLib data structure locking rules.

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

index 0c9df5f..57dd708 100644 (file)
@@ -1,3 +1,8 @@
+2005-05-23  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/tmpl/threads.sgml: Point out exceptions to the
+       general GLib data structure locking rules.
+
 2005-05-20  Matthias Clasen  <mclasen@redhat.com>
 
        * glib/tmpl/threads.sgml: Add a paragraph about thread
index 80f50cc..5ec8f94 100644 (file)
@@ -38,6 +38,9 @@ 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.
+The two notable exceptions from this rule are #GMainLoop and #GAsyncQueue, 
+which <emphasis>are</emphasis> threadsafe and needs no further 
+application-level locking to be accessed from multiple threads.
 </para>
 
 <!-- ##### SECTION See_Also ##### -->