Compares oldval with the pointer 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 a gpointer
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 pointer pointed to by atomic and if they are equal, atomically exchanges *atomic with newval. Also acts as a memory barrier. Since 2.4