org.lightwolf.synchronization
Class ThreadFreeLock
java.lang.Object
org.lightwolf.synchronization.ThreadFreeLock
public class ThreadFreeLock
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThreadFreeLock
public ThreadFreeLock()
lock
public void lock()
tryLock
public boolean tryLock()
tryLock
public boolean tryLock(long time,
TimeUnit unit)
unlock
public void unlock()
isMine
public boolean isMine()
isOwner
public boolean isOwner(Flow thread)
isFree
public boolean isFree()