Author: toad
Date: 2008-02-15 16:36:24 +0000 (Fri, 15 Feb 2008)
New Revision: 17950

Modified:
   trunk/freenet/src/freenet/client/FECCodec.java
   trunk/freenet/src/freenet/support/io/NativeThread.java
Log:
Fix FEC priorities too

Modified: trunk/freenet/src/freenet/client/FECCodec.java
===================================================================
--- trunk/freenet/src/freenet/client/FECCodec.java      2008-02-15 16:33:15 UTC 
(rev 17949)
+++ trunk/freenet/src/freenet/client/FECCodec.java      2008-02-15 16:36:24 UTC 
(rev 17950)
@@ -324,7 +324,7 @@
        public static void addToQueue(FECJob job, FECCodec codec) {
                synchronized(_awaitingJobs) {
                        if(fecRunnerThread == null) {
-                               fecRunnerThread = new NativeThread(fecRunner, 
"FEC Pool " + (fecPoolCounter++), Thread.MIN_PRIORITY);
+                               fecRunnerThread = new NativeThread(fecRunner, 
"FEC Pool " + (fecPoolCounter++), Thread.MIN_PRIORITY, true);
                                fecRunnerThread.setDaemon(true);

                                fecRunnerThread.start();

Modified: trunk/freenet/src/freenet/support/io/NativeThread.java
===================================================================
--- trunk/freenet/src/freenet/support/io/NativeThread.java      2008-02-15 
16:33:15 UTC (rev 17949)
+++ trunk/freenet/src/freenet/support/io/NativeThread.java      2008-02-15 
16:36:24 UTC (rev 17950)
@@ -102,9 +102,10 @@
                this.dontCheckRenice = dontCheckRenice;
        }

-       public NativeThread(Runnable r, String name, int priority) {
+       public NativeThread(Runnable r, String name, int priority, boolean 
dontCheckRenice) {
                super(r, name);
                this.currentPriority = priority;
+               this.dontCheckRenice = dontCheckRenice;
        }

        public NativeThread(ThreadGroup g, Runnable r, String name, int 
priority) {


Reply via email to