[freenet-cvs] r17922 - trunk/freenet/src/freenet/node

nextgens at freenetproject.org nextgens at freenetproject.org
Fri Feb 15 07:44:34 UTC 2008


Author: nextgens
Date: 2008-02-15 07:44:34 +0000 (Fri, 15 Feb 2008)
New Revision: 17922

Modified:
   trunk/freenet/src/freenet/node/NodeStarter.java
Log:
The keepalive thread deserves to run at MAX_PRIORITY

Modified: trunk/freenet/src/freenet/node/NodeStarter.java
===================================================================
--- trunk/freenet/src/freenet/node/NodeStarter.java	2008-02-15 07:42:16 UTC (rev 17921)
+++ trunk/freenet/src/freenet/node/NodeStarter.java	2008-02-15 07:44:34 UTC (rev 17922)
@@ -22,6 +22,7 @@
 import freenet.support.PooledExecutor;
 import freenet.support.SimpleFieldSet;
 import freenet.support.LoggerHook.InvalidThresholdException;
+import freenet.support.io.NativeThread;
        
 
 /**
@@ -140,7 +141,7 @@
 					}
 			}
 		};
-		Thread plug = new Thread(useless, "Plug");
+		NativeThread plug = new NativeThread(useless, "Plug", Thread.MAX_PRIORITY);
 		// Not daemon, but doesn't do anything.
 		// Keeps the JVM alive.
 		// DO NOT do anything in the plug thread, if you do you risk the EvilJVMBug.




More information about the cvs mailing list