Home | History | Annotate | Download | only in jsr166

Lines Matching defs:compareAndSet

75      * compareAndSet succeeds in changing values if equal to expected reference
85 assertTrue(ai.compareAndSet(one, two, 0, 0));
89 assertTrue(ai.compareAndSet(two, m3, 0, 1));
93 assertFalse(ai.compareAndSet(two, m3, 1, 1));
99 * compareAndSet in one thread enables another waiting for reference value
106 while (!ai.compareAndSet(two, three, 0, 0))
111 assertTrue(ai.compareAndSet(one, two, 0, 0));
119 * compareAndSet in one thread enables another waiting for stamp value
126 while (!ai.compareAndSet(one, one, 1, 2))
131 assertTrue(ai.compareAndSet(one, one, 0, 1));