Lines Matching defs:locks

36 package java.util.concurrent.locks;
91 * write locks in the style of a {@link ReentrantLock}. Non-reentrant
92 * readers are not allowed until all write locks held by the writing
97 * when write locks are held during calls or callbacks to methods that
98 * perform reads under read locks. If a reader tries to acquire the
123 * <p>This class supports methods to determine whether locks
129 * locks: a deserialized lock is in the unlocked state, regardless of
134 * particularly tricky when handling multiple locks in a non-nested
210 * <p>This lock supports a maximum of 65535 recursive write locks
211 * and 65535 read locks. Attempts to exceed these limits result in
297 * The number of reentrant read locks held by current thread.
328 * without relinquishing its read locks, since tryReleaseShared
335 * locks to be very cheap.
347 * nonfair locks, but differ in whether/how they allow barging
441 // both read and write locks are now free.
898 * The state, in brackets, includes the String {@code "Read locks ="}
899 * followed by the number of held read locks.
906 "[Read locks = " + r + "]";
1147 * IllegalMonitorStateException} is thrown. (Read locks are
1148 * held independently of write locks, so are not checked or
1151 * has also acquired read locks, since other threads that
1170 * but for <em>fair</em> locks favors those threads that have been
1253 * Queries the number of read locks held for this lock. This
1256 * @return the number of read locks held.
1470 * The state, in brackets, includes the String {@code "Write locks ="}
1471 * followed by the number of reentrantly held write locks, and the
1472 * String {@code "Read locks ="} followed by the number of held
1473 * read locks.
1483 "[Write locks = " + w + ", Read locks = " + r + "]";