Mercurial > hg > blitz_stable
comparison src/org/dancres/blitz/remote/nio/Pool.java @ 0:3dc0c5604566
Initial checkin of blitz 2.0 fcs - no installer yet.
author | Dan Creswell <dan.creswell@gmail.com> |
---|---|
date | Sat, 21 Mar 2009 11:00:06 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3dc0c5604566 |
---|---|
1 package org.dancres.blitz.remote.nio; | |
2 | |
3 import EDU.oswego.cs.dl.util.concurrent.Executor; | |
4 import EDU.oswego.cs.dl.util.concurrent.PooledExecutor; | |
5 import EDU.oswego.cs.dl.util.concurrent.LinkedQueue; | |
6 | |
7 /** | |
8 */ | |
9 public class Pool { | |
10 private static Executor _executor = | |
11 // new PooledExecutor(new LinkedQueue(), 50); | |
12 new PooledExecutor(50); | |
13 | |
14 static void execute(Runnable aTask) throws InterruptedException { | |
15 _executor.execute(aTask); | |
16 } | |
17 } |