equal
deleted
inserted
replaced
36 package java.util.concurrent.locks; |
36 package java.util.concurrent.locks; |
37 |
37 |
38 /** |
38 /** |
39 * A {@code ReadWriteLock} maintains a pair of associated {@link |
39 * A {@code ReadWriteLock} maintains a pair of associated {@link |
40 * Lock locks}, one for read-only operations and one for writing. |
40 * Lock locks}, one for read-only operations and one for writing. |
41 * The {@link #readLock read lock} may be held simultaneously by |
41 * The {@linkplain #readLock read lock} may be held simultaneously |
42 * multiple reader threads, so long as there are no writers. The |
42 * by multiple reader threads, so long as there are no writers. |
43 * {@link #writeLock write lock} is exclusive. |
43 * The {@linkplain #writeLock write lock} is exclusive. |
44 * |
44 * |
45 * <p>All {@code ReadWriteLock} implementations must guarantee that |
45 * <p>All {@code ReadWriteLock} implementations must guarantee that |
46 * the memory synchronization effects of {@code writeLock} operations |
46 * the memory synchronization effects of {@code writeLock} operations |
47 * (as specified in the {@link Lock} interface) also hold with respect |
47 * (as specified in the {@link Lock} interface) also hold with respect |
48 * to the associated {@code readLock}. That is, a thread successfully |
48 * to the associated {@code readLock}. That is, a thread successfully |