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.111 by jsr166, Mon Sep 4 06:57:50 2006 UTC vs.
Revision 1.112 by jsr166, Mon Sep 4 08:00:47 2006 UTC

# Line 778 | Line 778 | public class ThreadPoolExecutor extends
778              int c = ctl.get();
779              int rs = runStateOf(c);
780              // Check if queue empty only if necessary, and re-read ctl
781 <            // after this call to check if still same run state
781 >            // after this call to make CAS more likely to succeed.
782              if (rs == SHUTDOWN) {
783                  if (workQueue.isEmpty())
784                      return false;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines