mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-04 16:36:17 +01:00
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.
This commit is contained in:
parent
32ffaf4c32
commit
28dd7200d6
@ -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.
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user