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

Comparing jsr166/src/jsr166e/SequenceLock.java (file contents):
Revision 1.10 by dl, Thu Jul 21 12:49:33 2011 UTC vs.
Revision 1.11 by jsr166, Mon Aug 1 06:19:47 2011 UTC

# Line 44 | Line 44 | import java.io.IOException;
44   * be used together to define (partially) optimistic read-only methods
45   * that are usually more efficient than ReadWriteLocks when they
46   * apply.  These methods should in general be structured as loops that
47 < * await lock availablity, then read {@code volatile} fields into
47 > * await lock availability, then read {@code volatile} fields into
48   * local variables (and may further read other values derived from
49   * these, for example the {@code length} of a {@code volatile} array),
50   * and retry if the sequence number changed while doing so.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines