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