Document new atomic operations.
authorMatthias Clasen <mclasen@redhat.com>
Thu, 15 Dec 2005 04:37:32 +0000 (04:37 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Thu, 15 Dec 2005 04:37:32 +0000 (04:37 +0000)
2005-12-14  Matthias Clasen  <mclasen@redhat.com>

* glib/glib-sections.txt:
* glib/tmpl/atomic_operations.sgml: Document new atomic
operations.

docs/reference/ChangeLog
docs/reference/glib/glib-sections.txt
docs/reference/glib/tmpl/atomic_operations.sgml
glib/glib.symbols

index 2a4ed64df553c75792c593a24786c5ba2ec550ca..5bbf5b7b451355c7f36d29f3dfa7173de9e030fb 100644 (file)
@@ -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.
index efa960e68e6cda4543026a7e6bb9f173a27632a6..65d763418f3c2b5ea1f3d4d5b369b7e0e764eee3 100644 (file)
@@ -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
index 7025080efc0c36e66f2d68734de00f44d0b132c2..231fc73e092058e6b7d344078ac013bc650fa448 100644 (file)
@@ -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
index cdf5bc5f88d2bcccefb82820acd382c1a0f7d373..da3120de8d656b91ff99900e4200840ea518932a 100644 (file)
@@ -91,6 +91,8 @@ g_atomic_pointer_compare_and_exchange
 g_atomic_int_get
 g_atomic_pointer_get
 #endif
+g_atomic_int_set
+g_atomic_pointer_set
 #endif
 #endif