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 { |
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 { |