public void finalize () { @SuppressWarnings("unused") Lock temp; while ((temp = pop()) != null) temp = null; // temp.finalize() ? }
protected LockManager (Uid storeUid, int ot, int om) { super(storeUid, ot, om); if (txojLogger.logger.isTraceEnabled()) { txojLogger.logger.trace("LockManager::LockManager(" + storeUid + ")"); } systemKey = null; locksHeld = new LockList(); lockStore = null; stateLoaded = false; hasBeenLocked = false; objectLocked = false; conflictManager = new LockConflictManager(mutex); }
Uid u = get_uid(); OutputObjectState S = new OutputObjectState(u, otype); int lockCount = locksHeld.entryCount(); while ((current = locksHeld.pop()) != null)
public final boolean insert (Lock newlock) { LockListIterator next = new LockListIterator(this); Lock current = null; while ((current = next.iterate()) != null) { if (current.equals(newlock)) { return false; } } push(newlock); return true; }
/** * Print information about this instance on the specified * <code>PrintWriter</code>. */ public void print (PrintWriter strm) { LockListIterator next = new LockListIterator(locksHeld); Lock current; strm.println("LocalLockManager for object " + get_uid()); if (!stateLoaded) strm.println("No loaded state"); else if (locksHeld != null) { strm.println("\tCurrently holding : " + locksHeld.entryCount() + " locks"); while ((current = next.iterate()) != null) current.print(strm); } else strm.println("Currently holding : 0 locks"); }
locksHeld.forgetNext(previous); current = null; deleted = true;
locksHeld.insert(toSet); /*
Uid u = get_uid(); OutputObjectState S = new OutputObjectState(u, otype); int lockCount = locksHeld.entryCount(); while ((current = locksHeld.pop()) != null)
public final boolean insert (Lock newlock) { LockListIterator next = new LockListIterator(this); Lock current = null; while ((current = next.iterate()) != null) { if (current.equals(newlock)) { return false; } } push(newlock); return true; }
/** * Print information about this instance on the specified * <code>PrintWriter</code>. */ public void print (PrintWriter strm) { LockListIterator next = new LockListIterator(locksHeld); Lock current; strm.println("LocalLockManager for object " + get_uid()); if (!stateLoaded) strm.println("No loaded state"); else if (locksHeld != null) { strm.println("\tCurrently holding : " + locksHeld.entryCount() + " locks"); while ((current = next.iterate()) != null) current.print(strm); } else strm.println("Currently holding : 0 locks"); }
locksHeld.forgetNext(previous); current = null; deleted = true;
locksHeld.insert(toSet); /*
Uid u = get_uid(); OutputObjectState S = new OutputObjectState(u, otype); int lockCount = locksHeld.entryCount(); while ((current = locksHeld.pop()) != null)
public void finalize () { @SuppressWarnings("unused") Lock temp; while ((temp = pop()) != null) temp = null; // temp.finalize() ? }