Searched refs:stamp (Results 1 - 4 of 4) sorted by relevance

/libcore/luni/src/main/java/java/util/concurrent/atomic/
H A DAtomicStampedReference.java11 * along with an integer "stamp", that can be updated atomically.
25 final int stamp; field in class:AtomicStampedReference.Pair
26 private Pair(T reference, int stamp) { argument
28 this.stamp = stamp;
30 static <T> Pair<T> of(T reference, int stamp) { argument
31 return new Pair<T>(reference, stamp);
42 * @param initialStamp the initial stamp
58 * Returns the current value of the stamp.
60 * @return the current value of the stamp
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DCalendar.java769 transient private int stamp[]; field in class:Calendar
844 // Special values of stamp[]
868 * The next available value for <code>stamp[]</code>, an internal array.
959 stamp = new int[FIELD_COUNT];
1203 stamp[field] = nextStamp++;
1302 stamp[i] = fields[i] = 0; // UNSET == 0
1333 stamp[field] = UNSET;
1350 return stamp[field] != UNSET;
1562 return stamp[field] >= MINIMUM_USER_STAMP;
1574 if (stamp[
[all...]
/libcore/ojluni/src/main/java/java/text/
H A DCalendarBuilder.java40 * int array combining fields[] and stamp[] of {@code Calendar}.
46 * Pseudo time stamp constants used in java.util.Calendar
57 // stamp[] (lower half) and field[] (upper half) combined
115 // Set the fields from the min stamp to the max stamp so that
117 for (int stamp = MINIMUM_USER_STAMP; stamp < nextStamp; stamp++) {
119 if (field[index] == stamp) {
/libcore/luni/src/main/java/java/util/concurrent/locks/
H A DStampedLock.java14 * Lock acquisition methods return a stamp that represents and
24 * waiting for exclusive access, returning a stamp that can be used
31 * waiting for non-exclusive access, returning a stamp that can be
36 * returns a non-zero stamp only if the lock is not currently held
39 * stamp. This mode can be thought of as an extremely weak version
58 * a valid write stamp if (1) already in writing mode (2) in reading
69 * re-acquire locks (although you may pass a stamp to other methods
75 * valid stamp may be guessable). Stamp values may recycle after (no
76 * sooner than) one year of continuous operation. A stamp held without
108 * long stamp
495 validate(long stamp) argument
508 unlockWrite(long stamp) argument
525 unlockRead(long stamp) argument
551 unlock(long stamp) argument
591 tryConvertToWriteLock(long stamp) argument
627 tryConvertToReadLock(long stamp) argument
666 tryConvertToOptimisticRead(long stamp) argument
[all...]

Completed in 119 milliseconds