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.41 by tim, Wed Dec 10 14:57:13 2003 UTC vs.
Revision 1.42 by dl, Wed Dec 17 17:00:24 2003 UTC

# Line 824 | Line 824 | public class ThreadPoolExecutor extends
824      }
825  
826      public void shutdown() {
827 +        SecurityManager security = System.getSecurityManager();
828 +        if (security != null)
829 +            security.checkAccess(Thread.currentThread());
830 +
831          boolean fullyTerminated = false;
832          mainLock.lock();
833          try {
# Line 847 | Line 851 | public class ThreadPoolExecutor extends
851  
852  
853      public List<Runnable> shutdownNow() {
854 +        SecurityManager security = System.getSecurityManager();
855 +        if (security != null)
856 +            security.checkAccess(Thread.currentThread());
857          boolean fullyTerminated = false;
858          mainLock.lock();
859          try {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines