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.14 by tim, Fri Aug 8 20:05:07 2003 UTC vs.
Revision 1.15 by dl, Sat Aug 9 19:55:30 2003 UTC

# Line 272 | Line 272 | public class ThreadPoolExecutor implemen
272          return t;
273      }
274  
275 +    // addIfUnderCorePoolSize is non-private; accessible to ScheduledExecutor
276 +
277      /**
278       * Create and start a new thread running firstTask as its first
279       * task, only if less than corePoolSize threads are running.
# Line 279 | Line 281 | public class ThreadPoolExecutor implemen
281       * null if none)
282       * @return true if successful.
283       */
282    // non-private; accessible to ScheduledExecutor
284      boolean addIfUnderCorePoolSize(Runnable firstTask) {
285          Thread t = null;
286          mainLock.lock();
# Line 734 | Line 735 | public class ThreadPoolExecutor implemen
735      }
736  
737      /**
738 +     * Invokes <tt>shutdown</tt> when this executor is no longer
739 +     * referenced.
740 +     */
741 +    protected void finalize()  {
742 +        shutdown();
743 +    }
744 +
745 +    /**
746       * Sets the thread factory used to create new threads.
747       *
748       * @param threadFactory the new thread factory

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines