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

Comparing jsr166/src/jsr166e/extra/SequenceLock.java (file contents):
Revision 1.1 by dl, Fri Oct 12 14:09:35 2012 UTC vs.
Revision 1.4 by jsr166, Wed Jan 2 04:35:20 2013 UTC

# Line 40 | Line 40 | import java.io.IOException;
40   * threads invoke short read-only methods much more frequently than
41   * fully locked methods.
42   *
43 < * <p> Methods {@code awaitAvailability} and {@code getSequence} can
43 > * <p>Methods {@code awaitAvailability} and {@code getSequence} can
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
# Line 109 | Line 109 | public class SequenceLock implements Loc
109      private static final long serialVersionUID = 7373984872572414699L;
110  
111      static final class Sync extends AbstractQueuedLongSynchronizer {
112 <        static final long serialVersionUID = 2540673546047039555L;
112 >        private static final long serialVersionUID = 2540673546047039555L;
113  
114          /**
115           * The number of times to spin in lock() and awaitAvailability().
# Line 483 | Line 483 | public class SequenceLock implements Loc
483       *         the lock could be acquired
484       * @throws InterruptedException if the current thread is interrupted
485       * @throws NullPointerException if the time unit is null
486     *
486       */
487      public boolean tryLock(long timeout, TimeUnit unit)
488          throws InterruptedException {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines