Home
last modified time | relevance | path

Searched refs:getStamp (Results 1 – 2 of 2) sorted by relevance

/libcore/jsr166-tests/src/test/java/jsr166/
DAtomicStampedReferenceTest.java22 assertEquals(0, ai.getStamp()); in testConstructor()
25 assertEquals(1, a2.getStamp()); in testConstructor()
35 assertEquals(0, ai.getStamp()); in testGetSet()
40 assertEquals(0, ai.getStamp()); in testGetSet()
45 assertEquals(1, ai.getStamp()); in testGetSet()
56 assertEquals(0, ai.getStamp()); in testAttemptStamp()
58 assertEquals(1, ai.getStamp()); in testAttemptStamp()
71 assertEquals(0, ai.getStamp()); in testCompareAndSet()
104 assertEquals(0, ai.getStamp()); in testCompareAndSetInMultipleThreads()
124 assertEquals(2, ai.getStamp()); in testCompareAndSetInMultipleThreads2()
[all …]
/libcore/luni/src/main/java/java/util/concurrent/atomic/
DAtomicStampedReference.java62 public int getStamp() { in getStamp() method in AtomicStampedReference