Mercurial Hosting > luan
comparison src/org/eclipse/jetty/server/handler/HandlerCollection.java @ 865:6b210bb66c63
remove ThreadPool
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Sun, 02 Oct 2016 20:38:06 -0600 |
| parents | 22a4e93ed20e |
| children | b9aa175d9a29 |
comparison
equal
deleted
inserted
replaced
| 864:e21ca9878a10 | 865:6b210bb66c63 |
|---|---|
| 191 final CountDownLatch latch = new CountDownLatch(_handlers.length); | 191 final CountDownLatch latch = new CountDownLatch(_handlers.length); |
| 192 final ClassLoader loader = Thread.currentThread().getContextClassLoader(); | 192 final ClassLoader loader = Thread.currentThread().getContextClassLoader(); |
| 193 for (int i=0;i<_handlers.length;i++) | 193 for (int i=0;i<_handlers.length;i++) |
| 194 { | 194 { |
| 195 final int h=i; | 195 final int h=i; |
| 196 getServer().getThreadPool().dispatch( | 196 getServer().getThreadPool().execute( |
| 197 new Runnable() | 197 new Runnable() |
| 198 { | 198 { |
| 199 public void run() | 199 public void run() |
| 200 { | 200 { |
| 201 ClassLoader orig = Thread.currentThread().getContextClassLoader(); | 201 ClassLoader orig = Thread.currentThread().getContextClassLoader(); |
