Occasional thoughts on sofware architecure and programming languages
def testAtomicInt { var a = AtomicInt32(0); assertFalse(a.cas(1, 1)); assertEq(0, a.value); assertTrue(a.cas(0, 1)); assertEq(1, a.value);}
No comments:
Post a Comment