ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/jsr166e/StampedLock.java
(Generate patch)

Comparing jsr166/src/jsr166e/StampedLock.java (file contents):
Revision 1.40 by jsr166, Thu Feb 26 06:53:34 2015 UTC vs.
Revision 1.41 by jsr166, Sun Sep 13 16:28:14 2015 UTC

# Line 28 | Line 28 | import java.util.concurrent.locks.ReadWr
28   *   in method {@link #unlockWrite} to release the lock. Untimed and
29   *   timed versions of {@code tryWriteLock} are also provided. When
30   *   the lock is held in write mode, no read locks may be obtained,
31 < *   and all optimistic read validations will fail.  </li>
31 > *   and all optimistic read validations will fail.
32   *
33   *  <li><b>Reading.</b> Method {@link #readLock} possibly blocks
34   *   waiting for non-exclusive access, returning a stamp that can be
35   *   used in method {@link #unlockRead} to release the lock. Untimed
36 < *   and timed versions of {@code tryReadLock} are also provided. </li>
36 > *   and timed versions of {@code tryReadLock} are also provided.
37   *
38   *  <li><b>Optimistic Reading.</b> Method {@link #tryOptimisticRead}
39   *   returns a non-zero stamp only if the lock is not currently held
# Line 51 | Line 51 | import java.util.concurrent.locks.ReadWr
51   *   invoke method {@code validate()}.  For example, such steps are
52   *   typically required when first reading an object or array
53   *   reference, and then accessing one of its fields, elements or
54 < *   methods. </li>
54 > *   methods.
55   *
56   * </ul>
57   *

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines