[freenet-cvs] r17930 - in trunk/freenet/src/freenet: crypt io/comm support support/io

nextgens at freenetproject.org nextgens at freenetproject.org
Fri Feb 15 08:57:53 UTC 2008


Author: nextgens
Date: 2008-02-15 08:57:53 +0000 (Fri, 15 Feb 2008)
New Revision: 17930

Modified:
   trunk/freenet/src/freenet/crypt/DiffieHellman.java
   trunk/freenet/src/freenet/io/comm/UdpSocketHandler.java
   trunk/freenet/src/freenet/support/PooledExecutor.java
   trunk/freenet/src/freenet/support/io/NativeThread.java
Log:
doh

Modified: trunk/freenet/src/freenet/crypt/DiffieHellman.java
===================================================================
--- trunk/freenet/src/freenet/crypt/DiffieHellman.java	2008-02-15 08:37:11 UTC (rev 17929)
+++ trunk/freenet/src/freenet/crypt/DiffieHellman.java	2008-02-15 08:57:53 UTC (rev 17930)
@@ -54,6 +54,7 @@
 		}
 
 		public void run() {
+			super.run();
 			while (true) {
 				while (precalcBuffer.size() < PRECALC_MAX) {
 					precalcBuffer.push(genParams());

Modified: trunk/freenet/src/freenet/io/comm/UdpSocketHandler.java
===================================================================
--- trunk/freenet/src/freenet/io/comm/UdpSocketHandler.java	2008-02-15 08:37:11 UTC (rev 17929)
+++ trunk/freenet/src/freenet/io/comm/UdpSocketHandler.java	2008-02-15 08:57:53 UTC (rev 17930)
@@ -88,6 +88,7 @@
 	}
 	
 	public void run() { // Listen for packets
+		super.run();
 		tracker.startReceive(System.currentTimeMillis());
 		try {
 			runLoop();

Modified: trunk/freenet/src/freenet/support/PooledExecutor.java
===================================================================
--- trunk/freenet/src/freenet/support/PooledExecutor.java	2008-02-15 08:37:11 UTC (rev 17929)
+++ trunk/freenet/src/freenet/support/PooledExecutor.java	2008-02-15 08:57:53 UTC (rev 17930)
@@ -89,7 +89,6 @@
 	}
 	
 	class MyThread extends NativeThread {
-		
 		final String defaultName;
 		boolean alive = true;
 		Runnable nextJob;
@@ -102,6 +101,7 @@
 		}
 
 		public void run() {
+			super.run();
 			long ranJobs = 0;
 			int nativePriority = getNativePriority();
 			while(true) {

Modified: trunk/freenet/src/freenet/support/io/NativeThread.java
===================================================================
--- trunk/freenet/src/freenet/support/io/NativeThread.java	2008-02-15 08:37:11 UTC (rev 17929)
+++ trunk/freenet/src/freenet/support/io/NativeThread.java	2008-02-15 08:57:53 UTC (rev 17930)
@@ -11,6 +11,9 @@
 import java.net.URL;
 
 /**
+ * Do *NOT* forget to call super.run() if you extend it!
+ * 
+ * @see http://archives.freenetproject.org/thread/20080214.235159.6deed539.en.html
  * @author Florent Daigni&egrave;re &lt;nextgens at freenetproject.org&gt;
  */
 public class NativeThread extends Thread {




More information about the cvs mailing list