jdk/src/java.base/share/classes/java/util/concurrent/locks/ReadWriteLock.java
changeset 32990 299a81977f48
parent 25859 3317bb8137f4
child 39725 9548f8d846e9
equal deleted inserted replaced
32989:c0ff74aaf943 32990:299a81977f48
    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