ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/SynchronousQueue.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/SynchronousQueue.java (file contents):
Revision 1.59 by jsr166, Thu Aug 18 21:37:58 2005 UTC vs.
Revision 1.60 by jsr166, Thu Aug 18 21:48:50 2005 UTC

# Line 164 | Line 164 | public class SynchronousQueue<E> extends
164      static final int maxTimedSpins = (NCPUS < 2)? 0 : 32;
165  
166      /**
167 <     * The number of times to spin before blocking in untimed
168 <     * waits.  This is greater than timed value because untimed
169 <     * waits spin faster since they don't need to check times on
170 <     * each spin.
167 >     * The number of times to spin before blocking in untimed waits.
168 >     * This is greater than timed value because untimed waits spin
169 >     * faster since they don't need to check times on each spin.
170       */
171      static final int maxUntimedSpins = maxTimedSpins * 16;
172  
# Line 177 | Line 176 | public class SynchronousQueue<E> extends
176       */
177      static final long spinForTimeoutThreshold = 1000L;
178  
179 <    /** Dual stack  */
179 >    /** Dual stack */
180      static final class TransferStack extends Transferer {
181          /*
182           * This extends Scherer-Scott dual stack algorithm, differing,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines