compareAndSet

fun compareAndSet(expected: Boolean, new: Boolean): Boolean(source)