public boolean isHeldByCurrentThread() { if (CacheConfigFactory.DSO_ACTIVE) { return ManagerUtil.isHeldByCurrentThread(this, Manager.LOCK_TYPE_WRITE); } synchronized (this) { return locked && owner == Thread.currentThread(); } } }
public boolean isHeldByCurrentThread() { if (Terracotta.isActive()) { return ManagerUtil.isHeldByCurrentThread(this, Manager.LOCK_TYPE_WRITE); } synchronized (this) { return locked && owner == Thread.currentThread(); } } }
public String getLockState() { return (ManagerUtil.isLocked(lock, lockLevel) ? (ManagerUtil.isHeldByCurrentThread(lock, lockLevel) ? "[Locally locked]" : "[Remotely locked]") : "[Unlocked]"); }
private boolean isLockRealConditionInUnshared() { if (!ManagerUtil.isManaged(realCondition) || !ManagerUtil.isHeldByCurrentThread(realCondition, Manager.LOCK_TYPE_WRITE)) { return true; } return false; }
public String getLockState() { return (ManagerUtil.isLocked(lock, lockLevel) ? (ManagerUtil.isHeldByCurrentThread(lock, lockLevel) ? "[Locally locked]" : "[Remotelly locked]") : "[Unlocked]"); }
public boolean isHeldByCurrentThread() { if (Terracotta.isActive()) { return ManagerUtil.isHeldByCurrentThread(this, Manager.LOCK_TYPE_WRITE); } synchronized (this) { return locked && owner == Thread.currentThread(); } } }
private boolean isLockRealConditionInUnshared() { if (!ManagerUtil.isManaged(realCondition) || !ManagerUtil.isHeldByCurrentThread(realCondition, Manager.LOCK_TYPE_WRITE)) { return true; } return false; }
public String getLockState() { return (ManagerUtil.isLocked(lock, lockLevel) ? (ManagerUtil.isHeldByCurrentThread(lock, lockLevel) ? "[Locally locked]" : "[Remotely locked]") : "[Unlocked]"); }
public boolean isHeldByCurrentThread() { if (Terracotta.isActive()) { return ManagerUtil.isHeldByCurrentThread(this, Manager.LOCK_TYPE_WRITE); } synchronized (this) { return locked && owner == Thread.currentThread(); } } }
private boolean isLockRealConditionInUnshared() { if (!ManagerUtil.isManaged(realCondition) || !ManagerUtil.isHeldByCurrentThread(realCondition, Manager.LOCK_TYPE_WRITE)) { return true; } return false; }