mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-01 21:33:09 +02: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>
|
2005-05-20 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* glib/tmpl/threads.sgml: Add a paragraph about thread
|
* 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
|
(all global data is automatically locked). But individual data structure
|
||||||
instances are not automatically locked for performance reasons. So e.g.
|
instances are not automatically locked for performance reasons. So e.g.
|
||||||
you must coordinate accesses to the same #GHashTable from multiple threads.
|
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>
|
</para>
|
||||||
|
|
||||||
<!-- ##### SECTION See_Also ##### -->
|
<!-- ##### SECTION See_Also ##### -->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user