protected static class RunnableQueue.LockableLink extends RunnableQueue.Link
| Modifier and Type | Field and Description |
|---|---|
private boolean |
locked
Whether this link is actually locked.
|
| Constructor and Description |
|---|
LockableLink(java.lang.Runnable r)
Creates a new link.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isLocked()
Whether the link is actually locked.
|
void |
lock()
Locks this link.
|
void |
unlock()
unlocks this link.
|
getNext, getPrev, insertBefore, setNext, setPrev, unlinkpublic boolean isLocked()
public void lock()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void unlock()
unlock in class RunnableQueue.Link