Created
August 10, 2018 09:13
-
-
Save mmathys/87c4191d9206171d012cf7226970fbc4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
atomic { | |
if(exp1 != val1.get() || exp2 != val2.get()) { | |
return false; | |
} | |
val1.set(up1); | |
val2.set(up2); | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment