Searched refs:getStamp (Results 1 – 2 of 2) sorted by relevance
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | AtomicStampedReferenceTest.java | 33 assertEquals(0, ai.getStamp()); in testConstructor() 36 assertEquals(1, a2.getStamp()); in testConstructor() 46 assertEquals(0, ai.getStamp()); in testGetSet() 51 assertEquals(0, ai.getStamp()); in testGetSet() 56 assertEquals(1, ai.getStamp()); in testGetSet() 67 assertEquals(0, ai.getStamp()); in testAttemptStamp() 69 assertEquals(1, ai.getStamp()); in testAttemptStamp() 82 assertEquals(0, ai.getStamp()); in testCompareAndSet() 115 assertEquals(0, ai.getStamp()); in testCompareAndSetInMultipleThreads() 135 assertEquals(2, ai.getStamp()); in testCompareAndSetInMultipleThreads2() [all …]
|
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/ |
D | AtomicStampedReference.java | 91 public int getStamp() { in getStamp() method in AtomicStampedReference
|