[freenet-cvs] r17921 - in trunk/freenet/src/freenet: node support

nextgens at freenetproject.org nextgens at freenetproject.org
Fri Feb 15 07:42:17 UTC 2008


Author: nextgens
Date: 2008-02-15 07:42:16 +0000 (Fri, 15 Feb 2008)
New Revision: 17921

Modified:
   trunk/freenet/src/freenet/node/FNPPacketMangler.java
   trunk/freenet/src/freenet/support/Executor.java
Log:
JFKContext precalculation can be done using a low-priority too

Modified: trunk/freenet/src/freenet/node/FNPPacketMangler.java
===================================================================
--- trunk/freenet/src/freenet/node/FNPPacketMangler.java	2008-02-15 07:36:36 UTC (rev 17920)
+++ trunk/freenet/src/freenet/node/FNPPacketMangler.java	2008-02-15 07:42:16 UTC (rev 17921)
@@ -2581,7 +2581,7 @@
 			public void run() {
 				_fillJFKDHFIFO();
 			}
-		}, "DiffieHellman exponential signing");
+		}, "DiffieHellman exponential signing", Thread.MIN_PRIORITY);
 	}
 	
 	private void _fillJFKDHFIFO() {

Modified: trunk/freenet/src/freenet/support/Executor.java
===================================================================
--- trunk/freenet/src/freenet/support/Executor.java	2008-02-15 07:36:36 UTC (rev 17920)
+++ trunk/freenet/src/freenet/support/Executor.java	2008-02-15 07:42:16 UTC (rev 17921)
@@ -10,6 +10,7 @@
 	
 	/** Execute a job. */
 	public void execute(Runnable job, String jobName);
+	public void execute(Runnable job, String jobName, int priority);
 
 	/** Count the number of threads waiting for work */
 	public int[] waitingThreads();




More information about the cvs mailing list