glib/docs/reference
Marco Trevisan (Treviño) fa4e34667c gatomic: Add APIs to perform atomic int / pointer exchanges
Atomic APIs provide a way to exchange values only if we compare a value
that is equal to the old value, but not to just exchange the value
returning the old one.

However, compilers provide such built-in functions, so we can use them
to expose such functionality to GLib.

The only drawback is that when using an old version of gcc not providing
atomic APIs to swap values, we need to re-implement it with an
implementation that may not be fully atomic, but that is safe enough.

However this codepath should really not be used currently as gcc
introduced __atomic_exchange_n() at version 4.7.4, so 8 years ago.
2022-06-07 17:10:57 +02:00
..
gio Add functionality to preserve nanosecond timestamps 2022-05-27 17:03:35 +01:00
glib gatomic: Add APIs to perform atomic int / pointer exchanges 2022-06-07 17:10:57 +02:00
gobject param: Add g_param_value_is_valid 2022-05-23 15:48:28 -04:00
.gitignore .gitignore manpages (*.1) 2010-05-24 23:21:01 -04:00
AUTHORS Initial revision 1999-08-16 17:58:30 +00:00
COPYING Initial revision 1999-08-16 17:58:30 +00:00
meson.build meson: Use range() instead of listing all stable versions 2022-05-11 14:34:00 -04:00
NEWS Initial revision 1999-08-16 17:58:30 +00:00