Author: toad
Date: 2007-07-21 12:10:35 +0000 (Sat, 21 Jul 2007)
New Revision: 14225

Modified:
   trunk/freenet/src/freenet/client/FECCodec.java
Log:
Number FEC Pool threads

Modified: trunk/freenet/src/freenet/client/FECCodec.java
===================================================================
--- trunk/freenet/src/freenet/client/FECCodec.java      2007-07-21 11:55:27 UTC 
(rev 14224)
+++ trunk/freenet/src/freenet/client/FECCodec.java      2007-07-21 12:10:35 UTC 
(rev 14225)
@@ -343,7 +343,7 @@
                synchronized (_awaitingJobs) {
                        if(fecRunnerThread == null) {
                                if(fecRunnerThread != null) 
Logger.error(FECCodec.class, "The callback died!! restarting a new one, please 
report that error.");
-                               fecRunnerThread = new Thread(fecRunner, "FEC 
Pool");
+                               fecRunnerThread = new Thread(fecRunner, "FEC 
Pool "+(fecPoolCounter++));
                                fecRunnerThread.setDaemon(true);
                                
fecRunnerThread.setPriority(Thread.MIN_PRIORITY);

@@ -361,6 +361,7 @@
        private static final LinkedList _awaitingJobs = new LinkedList();
        private static final FECRunner fecRunner = new FECRunner();
        private static Thread fecRunnerThread;
+       private static int fecPoolCounter;

        /**
         * A private Thread started by {@link FECCodec}...


Reply via email to