+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.
<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
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.
@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