summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2017-09-05 07:32:22 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2017-09-05 07:32:22 +0200
commit81cdc374e6d796b471188e6a8edb8538034efb73 (patch)
tree744572f77d6d2af733da219ad3a12f9b82e21ec9
parent6c2d572a34f6240898a2dfb07eb80a50d2a4e59b (diff)
downloadgobject-introspection-81cdc374e6d796b471188e6a8edb8538034efb73.tar.gz
gir: Update annotations from GLib 2.53.7
-rw-r--r--gir/glib-2.0.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/gir/glib-2.0.c b/gir/glib-2.0.c
index 5754bd6c..c13bffa7 100644
--- a/gir/glib-2.0.c
+++ b/gir/glib-2.0.c
@@ -8568,6 +8568,10 @@
* If array elements contain dynamically-allocated memory, they should
* be freed separately.
*
+ * This function is not thread-safe. If using a #GArray from multiple
+ * threads, use only the atomic g_array_ref() and g_array_unref()
+ * functions.
+ *
* Returns: the element data if @free_segment is %FALSE, otherwise
* %NULL. The element data should be freed using g_free().
*/
@@ -8689,7 +8693,7 @@
* @array: A #GArray
*
* Atomically increments the reference count of @array by one.
- * This function is MT-safe and may be called from any thread.
+ * This function is thread-safe and may be called from any thread.
*
* Returns: The passed in #GArray
* Since: 2.22
@@ -8822,7 +8826,7 @@
*
* Atomically decrements the reference count of @array by one. If the
* reference count drops to 0, all memory allocated by the array is
- * released. This function is MT-safe and may be called from any
+ * released. This function is thread-safe and may be called from any
* thread.
*
* Since: 2.22
@@ -23472,6 +23476,10 @@
* be freed separately if @free_seg is %TRUE and no #GDestroyNotify
* function has been set for @array.
*
+ * This function is not thread-safe. If using a #GPtrArray from multiple
+ * threads, use only the atomic g_ptr_array_ref() and g_ptr_array_unref()
+ * functions.
+ *
* Returns: the pointer array if @free_seg is %FALSE, otherwise %NULL.
* The pointer array should be freed using g_free().
*/
@@ -23721,7 +23729,7 @@
* Atomically decrements the reference count of @array by one. If the
* reference count drops to 0, the effect is the same as calling
* g_ptr_array_free() with @free_segment set to %TRUE. This function
- * is MT-safe and may be called from any thread.
+ * is thread-safe and may be called from any thread.
*
* Since: 2.22
*/