Author: toad
Date: 2007-08-11 19:23:10 +0000 (Sat, 11 Aug 2007)
New Revision: 14625
Modified:
trunk/freenet/src/freenet/support/PooledExecutor.java
Log:
Coalesce the pooled threads: Pooled Thread @1 etc
Modified: trunk/freenet/src/freenet/support/PooledExecutor.java
===================================================================
--- trunk/freenet/src/freenet/support/PooledExecutor.java 2007-08-11
18:27:32 UTC (rev 14624)
+++ trunk/freenet/src/freenet/support/PooledExecutor.java 2007-08-11
19:23:10 UTC (rev 14625)
@@ -27,7 +27,8 @@
if(!waitingThreads.isEmpty()) {
t = (MyThread)
waitingThreads.remove(waitingThreads.size()-1);
} else {
- t = new MyThread("Pooled thread
"+(threadCounter++));
+ // Will be coalesced by thread count
listings if we use "@" or "for"
+ t = new MyThread("Pooled thread
@"+(threadCounter++));
t.setDaemon(true);
mustStart = true;
}