[freenet-cvs] r21004 - branches/saltedhashstore/freenet/src/freenet/store/saltedhash

j16sdiz at freenetproject.org j16sdiz at freenetproject.org
Wed Jul 9 08:41:34 UTC 2008


Author: j16sdiz
Date: 2008-07-09 08:41:34 +0000 (Wed, 09 Jul 2008)
New Revision: 21004

Modified:
   branches/saltedhashstore/freenet/src/freenet/store/saltedhash/SaltedHashFreenetStore.java
Log:
use signal other then notify

Modified: branches/saltedhashstore/freenet/src/freenet/store/saltedhash/SaltedHashFreenetStore.java
===================================================================
--- branches/saltedhashstore/freenet/src/freenet/store/saltedhash/SaltedHashFreenetStore.java	2008-07-09 08:41:11 UTC (rev 21003)
+++ branches/saltedhashstore/freenet/src/freenet/store/saltedhash/SaltedHashFreenetStore.java	2008-07-09 08:41:34 UTC (rev 21004)
@@ -1266,9 +1266,12 @@
 			shutdown = true;
 			lockManager.shutdown();
 
-			synchronized (cleanerLock) {
-				cleanerLock.notifyAll();
+			cleanerLock.lock();
+			try {
+				cleanerCondition.signalAll();
 				cleanerThread.interrupt();
+			} finally {
+				cleanerLock.unlock();
 			}
 
 			configLock.writeLock().lock();




More information about the cvs mailing list