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

Comparing jsr166/src/jsr166y/Phaser.java (file contents):
Revision 1.1 by dl, Mon Jul 7 16:53:30 2008 UTC vs.
Revision 1.2 by jsr166, Fri Jul 25 18:10:41 2008 UTC

# Line 299 | Line 299 | public class Phaser {
299  
300      /**
301       * Awaits the phase of the barrier to advance from the given
302 <     * value, or returns immediately if this barrier is terminated
302 >     * value, or returns immediately if this barrier is terminated.
303       * @param phase the phase on entry to this method
304       * @return the phase on exit from this method
305       */
# Line 337 | Line 337 | public class Phaser {
337      /**
338       * Awaits the phase of the barrier to advance from the given value
339       * or the given timeout elapses, or returns immediately if this
340 <     * barrier is terminated
340 >     * barrier is terminated.
341       * @param phase the phase on entry to this method
342       * @return the phase on exit from this method
343       * @throws InterruptedException if thread interrupted while waiting
# Line 431 | Line 431 | public class Phaser {
431      }
432  
433      /**
434 <     * Returns true if this barrier has been terminated
434 >     * Returns true if this barrier has been terminated.
435       * @return true if this barrier has been terminated
436       */
437      public boolean isTerminated() {
# Line 567 | Line 567 | public class Phaser {
567  
568      /**
569       * The number of times to spin before blocking in timed waits.
570 <     * The value is empirically derived
570 >     * The value is empirically derived.
571       */
572      static final int maxTimedSpins = (NCPUS < 2)? 0 : 32;
573  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines