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

Comparing jsr166/src/main/java/util/concurrent/ThreadPoolExecutor.java (file contents):
Revision 1.134 by jsr166, Sun Nov 18 18:03:11 2012 UTC vs.
Revision 1.135 by jsr166, Sun Dec 30 03:04:19 2012 UTC

# Line 377 | Line 377 | public class ThreadPoolExecutor extends
377      }
378  
379      /**
380 <     * Attempt to CAS-increment the workerCount field of ctl.
380 >     * Attempts to CAS-increment the workerCount field of ctl.
381       */
382      private boolean compareAndIncrementWorkerCount(int expect) {
383          return ctl.compareAndSet(expect, expect + 1);
384      }
385  
386      /**
387 <     * Attempt to CAS-decrement the workerCount field of ctl.
387 >     * Attempts to CAS-decrement the workerCount field of ctl.
388       */
389      private boolean compareAndDecrementWorkerCount(int expect) {
390          return ctl.compareAndSet(expect, expect - 1);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines