Klasse NonFairReentrantLock
java.lang.Object
org.eclipse.net4j.util.concurrent.NonFairReentrantLock
- Alle implementierten Schnittstellen:
Serializable
,Lock
- Bekannte direkte Unterklassen:
DelegableReentrantLock
- Seit:
- 3.6
- Autor:
- Eike Stepper
- Siehe auch:
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungint
getOwner()
protected Collection
<Thread> final int
protected Collection
<Thread> getWaitingThreads
(Condition condition) int
getWaitQueueLength
(Condition condition) final boolean
hasQueuedThread
(Thread thread) final boolean
boolean
hasWaiters
(Condition condition) boolean
boolean
isLocked()
protected boolean
void
lock()
void
toString()
boolean
tryLock()
boolean
void
unlock()
-
Konstruktordetails
-
NonFairReentrantLock
public NonFairReentrantLock()
-
-
Methodendetails
-
lock
public void lock() -
lockInterruptibly
- Angegeben von:
lockInterruptibly
in SchnittstelleLock
- Löst aus:
InterruptedException
-
tryLock
public boolean tryLock() -
tryLock
- Angegeben von:
tryLock
in SchnittstelleLock
- Löst aus:
InterruptedException
-
unlock
public void unlock() -
newCondition
- Angegeben von:
newCondition
in SchnittstelleLock
-
getHoldCount
public int getHoldCount() -
isHeldByCurrentThread
public boolean isHeldByCurrentThread() -
isLocked
public boolean isLocked() -
getOwner
-
hasQueuedThreads
public final boolean hasQueuedThreads() -
hasQueuedThread
-
getQueueLength
public final int getQueueLength() -
hasWaiters
-
getWaitQueueLength
-
toString
-
getQueuedThreads
-
getWaitingThreads
-
isOwner
-