[archstudio-commits] svn commit: r7072 - /utils/trunk/edu.uci.isr.sysutils/src/edu/uci/isr/sysutils/ThreadEventsLock.java

archstudio-commits-owner at uci.edu archstudio-commits-owner at uci.edu
Fri May 2 13:59:31 PDT 2008


Author: shendric
Date: Fri May  2 13:59:30 2008
New Revision: 7072

Log:
Fixed: was not checking the number of current locks correctly

Modified:
    utils/trunk/edu.uci.isr.sysutils/src/edu/uci/isr/sysutils/ThreadEventsL=
ock.java

Modified: utils/trunk/edu.uci.isr.sysutils/src/edu/uci/isr/sysutils/ThreadE=
ventsLock.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- utils/trunk/edu.uci.isr.sysutils/src/edu/uci/isr/sysutils/ThreadEventsL=
ock.java (original)
+++ utils/trunk/edu.uci.isr.sysutils/src/edu/uci/isr/sysutils/ThreadEventsL=
ock.java Fri May  2 13:59:30 2008
@@ -56,6 +56,10 @@
 	@Override
 	public void unlock(){
 		try{
+			if(getHoldCount() > 1){
+				super.unlock();
+				return;
+			}
 			super.unlock();
 			final Thread currentThread =3D Thread.currentThread();
 =





More information about the archstudio-commits mailing list