Compares oldval with the integer pointed to by atomic and if they are equal, atomically exchanges *atomic with newval. Also acts as a memory barrier. Since 2.4
a pointer to an integer
the assumed old value of *atomic
the new value of *atomic
TRUE, if *atomic was equal oldval. FALSE otherwise.
See Implementation
Compares oldval with the integer pointed to by atomic and if they are equal, atomically exchanges *atomic with newval. Also acts as a memory barrier. Since 2.4