*** empty log message ***
[IRC.git] / Robust / Transactions / TransactionalIO / src / TransactionalIO / core / MYLock.java
index 0d01974b8fa6519323d4c105b2cf61ac750171fa..92e9b2c5d7e550abf96a36169f89d4f41ea79dd6 100644 (file)
@@ -31,22 +31,10 @@ public class MYLock {
                 offsetlocked = true;
             }
 
-            /*if (me.getStatus() == Status.ACTIVE) {                        //locking the offset
-            offsetlock.writeLock().lock();
-            locked = true;
-            }*/
 
             if (me.getStatus() != Status.ACTIVE) {
-                /* if (locked) {
-                if (me.toholoffsetlocks[me.offsetcount] == null) {
-                me.toholoffsetlocks[me.offsetcount] = new ReentrantReadWriteLock();
-                }
-                me.toholoffsetlocks[me.offsetcount] = offsetlock;
-                me.offsetcount++;
-                //me.getHeldoffsetlocks().add(offsetlock);
-                }*/
-
                 offsetlocked = false;
+               notifyAll();
                 throw new AbortedException();
             }
         } catch (InterruptedException ex) {