diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-12-15 04:37:32 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-12-15 04:37:32 +0000 |
commit | 28dd7200d6aec8ccdd89c003ce4d29b299e730b4 (patch) | |
tree | e4587f9f43b5cb785f3a4bdafb6693a63cf9cfa9 /docs | |
parent | 32ffaf4c3251dd345ca8d28c3aa8b6ef3731e9e3 (diff) | |
download | glib-28dd7200d6aec8ccdd89c003ce4d29b299e730b4.tar.gz |
Document new atomic operations.
2005-12-14 Matthias Clasen <mclasen@redhat.com>
* glib/glib-sections.txt:
* glib/tmpl/atomic_operations.sgml: Document new atomic
operations.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/reference/ChangeLog | 6 | ||||
-rw-r--r-- | docs/reference/glib/glib-sections.txt | 4 | ||||
-rw-r--r-- | docs/reference/glib/tmpl/atomic_operations.sgml | 26 |
3 files changed, 33 insertions, 3 deletions
diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index 2a4ed64df..5bbf5b7b4 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,9 @@ +2005-12-14 Matthias Clasen <mclasen@redhat.com> + + * glib/glib-sections.txt: + * glib/tmpl/atomic_operations.sgml: Document new atomic + operations. + 2005-12-14 Federico Mena Quintero <federico@ximian.com> * glib/building.sgml: Clarify exactly what happens when you use --enable-gc-friendly. diff --git a/docs/reference/glib/glib-sections.txt b/docs/reference/glib/glib-sections.txt index efa960e68..65d763418 100644 --- a/docs/reference/glib/glib-sections.txt +++ b/docs/reference/glib/glib-sections.txt @@ -670,12 +670,14 @@ g_async_queue_sort_unlocked <SECTION> <TITLE>Atomic Operations</TITLE> -<FILE>atomic_operations</FILE> +<FILE>atomic_operations</FILE>g g_atomic_int_get +g_atomic_int_set g_atomic_int_add g_atomic_int_exchange_and_add g_atomic_int_compare_and_exchange g_atomic_pointer_get +g_atomic_pointer_set g_atomic_pointer_compare_and_exchange g_atomic_int_inc g_atomic_int_dec_and_test diff --git a/docs/reference/glib/tmpl/atomic_operations.sgml b/docs/reference/glib/tmpl/atomic_operations.sgml index 7025080ef..231fc73e0 100644 --- a/docs/reference/glib/tmpl/atomic_operations.sgml +++ b/docs/reference/glib/tmpl/atomic_operations.sgml @@ -69,11 +69,22 @@ Reads the value of the integer pointed to by @atomic. Also acts as a memory barrier. </para> -@atomic: a pointer to an integer. -@Returns: the value of *@atomic. +@atomic: a pointer to an integer +@Returns: the value of *@atomic @Since: 2.4 +<!-- ##### FUNCTION g_atomic_int_set ##### --> +<para> +Sets the value of the integer pointed to by @atomic. +Also acts as a memory barrier. +</para> + +@atomic: a pointer to an integer +@newval: the new value +@Since: 2.10 + + <!-- ##### FUNCTION g_atomic_int_add ##### --> <para> Atomically adds @val to the integer pointed to by @atomic. @@ -123,6 +134,17 @@ a memory barrier. @Since: 2.4 +<!-- ##### FUNCTION g_atomic_pointer_set ##### --> +<para> +Sets the value of the pointer pointed to by @atomic. +Also acts as a memory barrier. +</para> + +@atomic: a pointer to a #gpointer +@newval: the new value +@Since: 2.10 + + <!-- ##### FUNCTION g_atomic_pointer_compare_and_exchange ##### --> <para> Compares @oldval with the pointer pointed to by @atomic and |