qb_atomic_int_compare_and_exchange(3) on Linux
The text 2481f5b3d97e, as Debian 12 (Bookworm) shipped it.
Compares oldval with the integer pointed to by atomic and if they are equal, atomically exchanges *atomic with newval.
The text 2481f5b3d97e, as Debian 12 (Bookworm) shipped it.
Compares oldval with the integer pointed to by atomic and if they are equal, atomically exchanges *atomic with newval.