Author: toad
Date: 2008-02-18 15:00:22 +0000 (Mon, 18 Feb 2008)
New Revision: 18045
Modified:
trunk/freenet/src/freenet/client/FECCodec.java
Log:
Run at LOW_PRIORITY (doh)
Modified: trunk/freenet/src/freenet/client/FECCodec.java
===================================================================
--- trunk/freenet/src/freenet/client/FECCodec.java 2008-02-18 14:53:55 UTC
(rev 18044)
+++ trunk/freenet/src/freenet/client/FECCodec.java 2008-02-18 15:00:22 UTC
(rev 18045)
@@ -12,6 +12,7 @@
import com.onionnetworks.fec.FECCode;
import com.onionnetworks.util.Buffer;
+import freenet.node.PrioRunnable;
import freenet.support.Executor;
import freenet.support.Logger;
import freenet.support.api.Bucket;
@@ -354,7 +355,7 @@
*
* TODO: maybe it ought to start more than one thread on SMP
system ? (take care, it's memory consumpsive)
*/
- private static class FECRunner implements Runnable {
+ private static class FECRunner implements PrioRunnable {
public void run() {
freenet.support.Logger.OSThread.logPID(this);
@@ -413,6 +414,10 @@
}
}
}
+
+ public int getPriority() {
+ return NativeThread.LOW_PRIORITY;
+ }
}
/**