Lines Matching defs:state

23  * single atomic {@code int} value to represent state. Subclasses
24 * must define the protected methods that change this state, and which
25 * define what that state means in terms of this object being acquired
28 * other state fields, but only the atomically updated {@code int}
61 * this object, and {@link #acquire}, given this saved state value,
62 * eventually restores this object to its previous acquired state. No
75 * integer maintaining state, so deserialized objects have empty
78 * initial state upon deserialization.
84 * the synchronization state using {@link #getState}, {@link
160 * synchronizers that can rely on {@code int} state, acquire, and
170 * the value zero to represent the unlocked state, and one to
171 * represent the locked state. While a non-reentrant lock
182 * // Reports whether in locked state
187 * // Acquires the lock if state is zero
197 * // Releases the lock by setting state to zero
213 * setState(0); // reset to unlocked state
276 * with initial synchronization state of zero.
387 * Nodes never leave this state. In particular,
510 * The synchronization state.
512 private volatile int state;
515 * Returns the current value of synchronization state.
517 * @return current state value
520 return state;
524 * Sets the value of synchronization state.
526 * @param newState the new state value
529 state = newState;
533 * Atomically sets synchronization state to the given updated
534 * value if the current state value equals the expected value.
1028 * if the state of the object permits it to be acquired in the
1047 * synchronizer in an illegal state. This exception must be
1057 * Attempts to set the state to reflect a release in exclusive
1066 * passed to a release method, or the current state value upon
1070 * state, so that any waiting threads may attempt to acquire;
1073 * synchronizer in an illegal state. This exception must be
1084 * the state of the object permits it to be acquired in the shared
1109 * synchronizer in an illegal state. This exception must be
1119 * Attempts to set the state to reflect a release in shared mode.
1127 * passed to a release method, or the current state value upon
1134 * synchronizer in an illegal state. This exception must be
1509 * monitoring system state, not for synchronization
1585 * Returns a string identifying this synchronizer, as well as its state.
1586 * The state, in brackets, includes the String {@code "State ="}
1591 * @return a string identifying this synchronizer, as well as its state
1692 * Invokes release with current state value; returns saved state.
1695 * @return previous sync state
1733 * monitoring of the system state.
1755 * system state, not for synchronization control.
1941 * <li> Save lock state returned by {@link #getState}.
1942 * <li> Invoke {@link #release} with saved state as argument,
1946 * {@link #acquire} with saved state as argument.
2001 * <li> Save lock state returned by {@link #getState}.
2002 * <li> Invoke {@link #release} with saved state as argument,
2006 * {@link #acquire} with saved state as argument.
2033 * <li> Save lock state returned by {@link #getState}.
2034 * <li> Invoke {@link #release} with saved state as argument,
2038 * {@link #acquire} with saved state as argument.
2074 * <li> Save lock state returned by {@link #getState}.
2075 * <li> Invoke {@link #release} with saved state as argument,
2079 * {@link #acquire} with saved state as argument.
2115 * <li> Save lock state returned by {@link #getState}.
2116 * <li> Invoke {@link #release} with saved state as argument,
2120 * {@link #acquire} with saved state as argument.
2248 (AbstractQueuedSynchronizer.class.getDeclaredField("state"));