Update of /cvsroot/freenet/freenet/src/freenet/node
In directory sc8-pr-cvs1:/tmp/cvs-serv21889
Modified Files:
Main.java
Log Message:
Fix threading
Index: Main.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/node/Main.java,v
retrieving revision 1.278
retrieving revision 1.279
diff -u -w -r1.278 -r1.279
--- Main.java 24 Oct 2003 04:22:03 -0000 1.278
+++ Main.java 24 Oct 2003 04:27:09 -0000 1.279
@@ -361,7 +361,7 @@
Node.threadFactoryName = params.getString("threadFactory"); // need for
initDiagnostics
// Backward compatible defaults.
- if (Node.maxThreads < 0) {
+ if (Node.maxThreads <= 0) {
if (Node.threadFactoryName.equals("Q")) {
Node.threadFactoryName = "F";
}
@@ -1407,7 +1407,7 @@
ThreadFactory tf = null;
if (Node.threadFactoryName.equals("Y")) {
tf = (ThreadFactory) new YThreadFactory(tg, Node.targetMaxThreads,
"YThread-");
- } else if (Node.threadFactoryName.equals("T")) {
+ } else if (Node.threadFactoryName.equals("F")) {
tf = (ThreadFactory) new FastThreadFactory(tg, Node.maxThreads);
} else if (Node.threadFactoryName.equals("Q")) {
tf = (ThreadFactory) new QThreadFactory(tg, Node.targetMaxThreads);
_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs