/** * Determine whether the calling thread owns a lock on the identified * resource. */ public synchronized boolean isLockOwner(Connection conn, String lockName) { lockName = lockName.intern(); return getThreadLocks().contains(lockName); }
/** * Determine whether the calling thread owns a lock on the identified * resource. */ public synchronized boolean isLockOwner(Connection conn, String lockName) { lockName = lockName.intern(); return getThreadLocks().contains(lockName); }
getThreadLocks().add(lockName); locks.add(lockName); } else if(log.isDebugEnabled()) {
getThreadLocks().add(lockName); locks.add(lockName); } else if(log.isDebugEnabled()) {
+ Thread.currentThread().getName()); getThreadLocks().remove(lockName); locks.remove(lockName); this.notify();
+ Thread.currentThread().getName()); getThreadLocks().remove(lockName); locks.remove(lockName); this.notify();
/** * Determine whether the calling thread owns a lock on the identified * resource. */ public synchronized boolean isLockOwner(Connection conn, String lockName) { lockName = lockName.intern(); return getThreadLocks().contains(lockName); }
/** * Determine whether the calling thread owns a lock on the identified * resource. */ public synchronized boolean isLockOwner(Connection conn, String lockName) { lockName = lockName.intern(); return getThreadLocks().contains(lockName); }
getThreadLocks().add(lockName); locks.add(lockName); } else if(log.isDebugEnabled()) {
getThreadLocks().add(lockName); locks.add(lockName); } else if(log.isDebugEnabled()) {
+ Thread.currentThread().getName()); getThreadLocks().remove(lockName); locks.remove(lockName); this.notify();
+ Thread.currentThread().getName()); getThreadLocks().remove(lockName); locks.remove(lockName); this.notify();