Searched defs:stamp (Results 1 - 3 of 3) sorted by relevance

/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
H A DAtomicStampedReference.java40 * along with an integer "stamp", that can be updated atomically.
54 final int stamp; field in class:AtomicStampedReference.Pair
55 private Pair(T reference, int stamp) { argument
57 this.stamp = stamp;
59 static <T> Pair<T> of(T reference, int stamp) { argument
60 return new Pair<T>(reference, stamp);
71 * @param initialStamp the initial stamp
87 * Returns the current value of the stamp.
89 * @return the current value of the stamp
[all...]
/libcore/ojluni/src/main/java/java/util/concurrent/locks/
H A DStampedLock.java43 * Lock acquisition methods return a stamp that represents and
53 * waiting for exclusive access, returning a stamp that can be used
60 * waiting for non-exclusive access, returning a stamp that can be
65 * returns a non-zero stamp only if the lock is not currently held
68 * stamp. This mode can be thought of as an extremely weak version
87 * a valid write stamp if (1) already in writing mode (2) in reading
98 * re-acquire locks (although you may pass a stamp to other methods
104 * valid stamp may be guessable). Stamp values may recycle after (no
105 * sooner than) one year of continuous operation. A stamp held without
137 * long stamp
524 validate(long stamp) argument
537 unlockWrite(long stamp) argument
554 unlockRead(long stamp) argument
580 unlock(long stamp) argument
620 tryConvertToWriteLock(long stamp) argument
656 tryConvertToReadLock(long stamp) argument
695 tryConvertToOptimisticRead(long stamp) argument
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DCalendar.java853 transient private int stamp[]; field in class:Calendar
931 // Special values of stamp[]
955 * The next available value for <code>stamp[]</code>, an internal array.
1073 // Calendar.stamp[] (lower half) and Calendar.fields[] (upper half) combined
1198 throw new IllegalStateException("stamp counter overflow");
1523 // Set the fields from the min stamp to the max stamp so that
1525 for (int stamp = MINIMUM_USER_STAMP; stamp < nextStamp; stamp
[all...]

Completed in 213 milliseconds