Author: xor
Date: 2009-01-10 21:39:44 +0000 (Sat, 10 Jan 2009)
New Revision: 25008

Modified:
   trunk/freenet/src/freenet/support/TransferThread.java
Log:
Provide a function for waking up a TransferThread.

Modified: trunk/freenet/src/freenet/support/TransferThread.java
===================================================================
--- trunk/freenet/src/freenet/support/TransferThread.java       2009-01-10 
21:16:31 UTC (rev 25007)
+++ trunk/freenet/src/freenet/support/TransferThread.java       2009-01-10 
21:39:44 UTC (rev 25008)
@@ -80,6 +80,13 @@
                }
        }
        
+       /**
+        * Wakes up the thread so that iterate() is called.
+        */
+       public void nextIteration() {
+               mThread.interrupt();
+       }
+       
        protected void abortAllTransfers() {
                Logger.debug(this, "Trying to stop all requests & inserts");
                

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to