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.2 by dl, Tue May 27 18:14:40 2003 UTC vs.
Revision 1.3 by dl, Thu May 29 13:49:24 2003 UTC

# Line 58 | Line 58 | public class Executors {
58          return new DelegatedExecutorService
59              (new ThreadPoolExecutor(nThreads, nThreads,
60                                      0L, TimeUnit.MILLISECONDS,
61 <                                    new LinkedBlockingQueue()));
61 >                                    new LinkedBlockingQueue<Runnable>()));
62      }
63  
64      /**
# Line 74 | Line 74 | public class Executors {
74          return new DelegatedExecutorService
75              (new ThreadPoolExecutor(nThreads, nThreads,
76                                      0L, TimeUnit.MILLISECONDS,
77 <                                    new LinkedBlockingQueue(),
77 >                                    new LinkedBlockingQueue<Runnable>(),
78                                      threadFactory, null));
79      }
80  
# Line 93 | Line 93 | public class Executors {
93          return new DelegatedExecutorService
94              (new ThreadPoolExecutor(1, 1,
95                                      0L, TimeUnit.MILLISECONDS,
96 <                                    new LinkedBlockingQueue()));
96 >                                    new LinkedBlockingQueue<Runnable>()));
97      }
98  
99      /**
# Line 109 | Line 109 | public class Executors {
109          return new DelegatedExecutorService
110              (new ThreadPoolExecutor(1, 1,
111                                      0L, TimeUnit.MILLISECONDS,
112 <                                    new LinkedBlockingQueue(),
112 >                                    new LinkedBlockingQueue<Runnable>(),
113                                      threadFactory, null));
114      }
115  
# Line 131 | Line 131 | public class Executors {
131          return new DelegatedExecutorService
132              (new ThreadPoolExecutor(0, Integer.MAX_VALUE,
133                                      60, TimeUnit.SECONDS,
134 <                                    new SynchronousQueue()));
134 >                                    new SynchronousQueue<Runnable>()));
135      }
136  
137      /**
# Line 146 | Line 146 | public class Executors {
146          return new DelegatedExecutorService
147              (new ThreadPoolExecutor(0, Integer.MAX_VALUE,
148                                      60, TimeUnit.SECONDS,
149 <                                    new SynchronousQueue(),
149 >                                    new SynchronousQueue<Runnable>(),
150                                      threadFactory, null));
151      }
152  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines