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

Comparing jsr166/src/main/java/util/concurrent/Executors.java (file contents):
Revision 1.46 by dl, Fri Jan 9 17:15:48 2004 UTC vs.
Revision 1.47 by dl, Sun Jan 11 23:19:55 2004 UTC

# Line 129 | Line 129 | public class Executors {
129       */
130      public static ExecutorService newCachedThreadPool() {
131          return new ThreadPoolExecutor(0, Integer.MAX_VALUE,
132 <                                      60, TimeUnit.SECONDS,
132 >                                      60L, TimeUnit.SECONDS,
133                                        new SynchronousQueue<Runnable>());
134      }
135  
# Line 143 | Line 143 | public class Executors {
143       */
144      public static ExecutorService newCachedThreadPool(ThreadFactory threadFactory) {
145          return new ThreadPoolExecutor(0, Integer.MAX_VALUE,
146 <                                      60, TimeUnit.SECONDS,
146 >                                      60L, TimeUnit.SECONDS,
147                                        new SynchronousQueue<Runnable>(),
148                                        threadFactory);
149      }
# Line 299 | Line 299 | public class Executors {
299          return new PrivilegedThreadFactory();
300      }
301  
302
302      /**
303       * Returns a {@link Callable} object that, when
304       * called, runs the given task and returns the given result.  This

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines