document non-thread-safety for _foreach() functions.

Sat Jul 30 23:40:35 2005  Tim Janik  <timj@gtk.org>

        * glib/tmpl/datalist.sgml:
        * glib/tmpl/datalset.sgml: document non-thread-safety for
        _foreach() functions.
This commit is contained in:
Tim Janik 2005-07-30 21:41:18 +00:00 committed by Tim Janik
parent f0cfc267ba
commit a49fda33d5
3 changed files with 14 additions and 2 deletions

View File

@ -1,3 +1,9 @@
Sat Jul 30 23:40:35 2005 Tim Janik <timj@gtk.org>
* glib/tmpl/datalist.sgml:
* glib/tmpl/datalset.sgml: document non-thread-safety for
_foreach() functions.
2005-07-26 Matthias Clasen <mclasen@redhat.com>
* glib/tmpl/arrays.sgml: One more improvement.

View File

@ -32,7 +32,7 @@ To get data elements from a datalist use g_datalist_id_get_data() and
g_datalist_get_data().
</para>
<para>
To iterate over all data elements in a datalist use g_datalist_foreach().
To iterate over all data elements in a datalist use g_datalist_foreach() (not thread-safe).
</para>
<para>
To remove data elements from a datalist use g_datalist_id_remove_data() and
@ -189,6 +189,9 @@ Removes an element, without calling its destroy notifier.
Calls the given function for each data element of the datalist.
The function is called with each data element's #GQuark id and data,
together with the given @user_data parameter.
Note that this function is NOT thread-safe. So unless @datalist
can be protected from any modifications during invokation of this
function, it should not be called.
</para>
@datalist: a datalist.

View File

@ -34,7 +34,7 @@ To get data elements from a dataset use g_dataset_id_get_data() and
g_dataset_get_data().
</para>
<para>
To iterate over all data elements in a dataset use g_dataset_foreach().
To iterate over all data elements in a dataset use g_dataset_foreach() (not thread-safe).
</para>
<para>
To remove data elements from a dataset use g_dataset_id_remove_data() and
@ -179,6 +179,9 @@ Removes an element, without calling its destroy notifier.
<para>
Calls the given function for each data element which is associated with the
given location.
Note that this function is NOT thread-safe. So unless @datalist
can be protected from any modifications during invokation of this
function, it should not be called.
</para>
@dataset_location: the location identifying the dataset.