mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +02:00
Moved the assembler functions from gatomic.h to gatomic.c, which makes for
2004-02-29 Sebastian Wilhelmi <seppi@seppi.de> * configure.in, glib/gatomic.c, glib/gatomic.h: Moved the assembler functions from gatomic.h to gatomic.c, which makes for better maintainability. Also use gint instead of gint32 to be able to use reference counting for ABI-fixed structures with gint/guint. * glib/gthread.h: Adapted accordingly. * tests/atomic-test.c: Updated to test for G_MAXINT and G_MININT. * glib/glib-overrides.txt, glib/glib-sections.txt, glib/tmpl/atomic_operations.sgml: Updated according to code changes.
This commit is contained in:
committed by
Sebastian Wilhelmi
parent
760d96edc5
commit
fe2efd06a0
@@ -1,3 +1,8 @@
|
||||
2004-02-29 Sebastian Wilhelmi <seppi@seppi.de>
|
||||
|
||||
* glib/glib-overrides.txt, glib/glib-sections.txt,
|
||||
glib/tmpl/atomic_operations.sgml: Updated according to code changes.
|
||||
|
||||
Sun Feb 29 02:35:00 2004 Sven Herzberg <herzi@gnome-de.org>
|
||||
|
||||
* glib/tmpl/limits.sgml: exchange non-existing G_MAX_DOUBLE for
|
||||
|
@@ -290,58 +290,16 @@ gchar c
|
||||
|
||||
# g_atomic
|
||||
|
||||
<FUNCTION>
|
||||
<NAME>g_atomic_int_get</NAME>
|
||||
<RETURNS>gint32</RETURNS>
|
||||
gint32 *atomic
|
||||
</FUNCTION>
|
||||
|
||||
<FUNCTION>
|
||||
<NAME>g_atomic_int_exchange_and_add</NAME>
|
||||
<RETURNS>gint32</RETURNS>
|
||||
gint32 *atomic
|
||||
gint32 val
|
||||
</FUNCTION>
|
||||
|
||||
<FUNCTION>
|
||||
<NAME>g_atomic_int_add</NAME>
|
||||
<RETURNS>void</RETURNS>
|
||||
gint32 *atomic
|
||||
gint32 val
|
||||
</FUNCTION>
|
||||
|
||||
<FUNCTION>
|
||||
<NAME>g_atomic_int_compare_and_exchange</NAME>
|
||||
<RETURNS>gboolean</RETURNS>
|
||||
gint32 *atomic
|
||||
gint32 oldval
|
||||
gint32 newval
|
||||
</FUNCTION>
|
||||
|
||||
<FUNCTION>
|
||||
<NAME>g_atomic_pointer_get</NAME>
|
||||
<RETURNS>gpointer</RETURNS>
|
||||
gpointer *atomic
|
||||
</FUNCTION>
|
||||
|
||||
<FUNCTION>
|
||||
<NAME>g_atomic_pointer_compare_and_exchange</NAME>
|
||||
<RETURNS>gboolean</RETURNS>
|
||||
gpointer *atomic
|
||||
gpointer oldval
|
||||
gpointer newval
|
||||
</FUNCTION>
|
||||
|
||||
<FUNCTION>
|
||||
<NAME>g_atomic_int_inc</NAME>
|
||||
<RETURNS>void</RETURNS>
|
||||
gint32 *atomic
|
||||
gint *atomic
|
||||
</FUNCTION>
|
||||
|
||||
<FUNCTION>
|
||||
<NAME>g_atomic_int_dec_and_test</NAME>
|
||||
<RETURNS>gboolean</RETURNS>
|
||||
gint32 *atomic
|
||||
gint *atomic
|
||||
</FUNCTION>
|
||||
|
||||
<STRUCT>
|
||||
|
@@ -665,12 +665,6 @@ g_atomic_int_inc
|
||||
g_atomic_int_dec_and_test
|
||||
</SECTION>
|
||||
|
||||
<SUBSECTION Private>
|
||||
g_atomic_int_add_fallback
|
||||
g_atomic_int_exchange_and_add_fallback
|
||||
g_atomic_int_compare_and_exchange_fallback
|
||||
g_atomic_pointer_compare_and_exchange_fallback
|
||||
|
||||
<SECTION>
|
||||
<TITLE>IO Channels</TITLE>
|
||||
<FILE>iochannels</FILE>
|
||||
|
@@ -66,7 +66,7 @@ Reads the value of the integer pointed to by @atomic. Also acts as
|
||||
a memory barrier.
|
||||
</para>
|
||||
|
||||
@atomic: a pointer to a 32-bit integer.
|
||||
@atomic: a pointer to an integer.
|
||||
@Returns: the value of *@atomic.
|
||||
@Since: 2.4
|
||||
|
||||
@@ -77,7 +77,7 @@ Atomically adds @val to the integer pointed to by @atomic.
|
||||
Also acts as a memory barrier.
|
||||
</para>
|
||||
|
||||
@atomic: a pointer to a 32-bit integer.
|
||||
@atomic: a pointer to an integer.
|
||||
@val: the value to add to *@atomic.
|
||||
@Since: 2.4
|
||||
|
||||
@@ -89,7 +89,7 @@ the value of *@atomic just before the addition took place.
|
||||
Also acts as a memory barrier.
|
||||
</para>
|
||||
|
||||
@atomic: a pointer to a 32-bit integer.
|
||||
@atomic: a pointer to an integer.
|
||||
@val: the value to add to *@atomic.
|
||||
@Returns: the value of *@atomic before the addition.
|
||||
@Since: 2.4
|
||||
@@ -102,7 +102,7 @@ if they are equal, atomically exchanges *@atomic with @newval.
|
||||
Also acts as a memory barrier.
|
||||
</para>
|
||||
|
||||
@atomic: a pointer to a 32-bit integer.
|
||||
@atomic: a pointer to an integer.
|
||||
@oldval: the assumed old value of *@atomic.
|
||||
@newval: the new value of *@atomic.
|
||||
@Returns: %TRUE, if *@atomic was equal @oldval. %FALSE otherwise.
|
||||
@@ -139,7 +139,7 @@ Also acts as a memory barrier.
|
||||
Atomically increments the integer pointed to by @atomic by 1.
|
||||
</para>
|
||||
|
||||
@atomic: a pointer to a 32-bit integer.
|
||||
@atomic: a pointer to an integer.
|
||||
@Since: 2.4
|
||||
|
||||
|
||||
@@ -148,7 +148,7 @@ Atomically increments the integer pointed to by @atomic by 1.
|
||||
Atomically decrements the integer pointed to by @atomic by 1.
|
||||
</para>
|
||||
|
||||
@atomic: a pointer to a 32-bit integer.
|
||||
@atomic: a pointer to an integer.
|
||||
@Returns: %TRUE, if the integer pointed to by @atomic is 0 after
|
||||
decrementing it.
|
||||
@Since: 2.4
|
||||
|
Reference in New Issue
Block a user