Author: toad
Date: 2008-02-15 19:32:39 +0000 (Fri, 15 Feb 2008)
New Revision: 17959

Modified:
   trunk/freenet/src/freenet/support/PooledExecutor.java
Log:
Make the @<thread number>, the thread's actual thread number, and the 
(threadnumber) agree.

Modified: trunk/freenet/src/freenet/support/PooledExecutor.java
===================================================================
--- trunk/freenet/src/freenet/support/PooledExecutor.java       2008-02-15 
18:27:37 UTC (rev 17958)
+++ trunk/freenet/src/freenet/support/PooledExecutor.java       2008-02-15 
19:32:39 UTC (rev 17959)
@@ -68,7 +68,8 @@
                                                return;
                                        }
                                        // Will be coalesced by thread count 
listings if we use "@" or "for"
-                                       t = new MyThread("Pooled thread 
awaiting work @"+(threadCounter[prio]++), threadCounter[prio], prio, 
!fromTicker);
+                                       t = new MyThread("Pooled thread 
awaiting work @"+(threadCounter[prio]), threadCounter[prio], prio, !fromTicker);
+                                       threadCounter[prio]++;
                                        t.setDaemon(true);
                                        mustStart = true;
                                        miss = true;


Reply via email to