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 2a4ed64..5bbf5b7 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 efa960e..65d7634 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 7025080..231fc73 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 cdf5bc5..da3120d 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