mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
Point out exceptions to the general GLib data structure locking rules.
2005-05-23 Matthias Clasen <mclasen@redhat.com> * glib/tmpl/threads.sgml: Point out exceptions to the general GLib data structure locking rules.
This commit is contained in:
parent
921b8bc1c7
commit
d38febf6b3
@ -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
|
||||
|
@ -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 ##### -->
|
||||
|
Loading…
Reference in New Issue
Block a user