glib/docs
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
..
reference gatomic: Add APIs to perform atomic int / pointer exchanges 2022-06-07 17:10:57 +02:00
backports.md docs: Add a backports policy 2022-05-19 12:52:26 +01:00
CODEOWNERS CODEOWNERS: Add myself as co-owner of Windows stuff 2019-08-27 12:57:32 +05:30
debugging.txt tree: Fix various typos and outdated terminology 2020-06-12 15:01:08 +01:00
macros.txt build: Add glib_debug option 2021-01-20 16:05:36 +01:00
meson-version.md docs: Add a Meson version policy 2022-05-06 13:01:44 +01:00
rationales.md docs: Move README.rationale to docs subdirectory 2022-05-11 13:02:49 +01:00
roadmap.md docs: Add a roadmap policy 2022-05-22 17:10:52 +01:00
supported-platforms.md docs: Update supported platforms list 2022-05-18 08:36:50 +01:00
toolchain-requirements.md docs: Add compiler and toolchain requirements from the wiki 2022-05-18 08:36:36 +01:00