Merge branch 'atomic-exchange-pre-value' into 'main'

gatomic: Add Compare and Exchange functions that returns the previous value

See merge request GNOME/glib!2766
This commit is contained in:
Philip Withnall
2022-06-23 13:19:05 +00:00
6 changed files with 328 additions and 7 deletions

View File

@@ -1273,6 +1273,7 @@ g_atomic_int_set
g_atomic_int_inc
g_atomic_int_dec_and_test
g_atomic_int_compare_and_exchange
g_atomic_int_compare_and_exchange_full
g_atomic_int_exchange
g_atomic_int_add
g_atomic_int_and
@@ -1283,6 +1284,7 @@ g_atomic_int_xor
g_atomic_pointer_get
g_atomic_pointer_set
g_atomic_pointer_compare_and_exchange
g_atomic_pointer_compare_and_exchange_full
g_atomic_pointer_exchange
g_atomic_pointer_add
g_atomic_pointer_and