Deque
sys.thread.Deque (Class)
A Deque is a double-ended queue with a pop method that can block until
an element is available. It is commonly used to synchronize threads.
Instance Members
push(i: sys.thread.Deque.T): VoidAdds an element at the front of this Deque.
(Java,Jvm): throws java.lang.NullPointerException if i is null.
| Name | Type |
|---|---|
i |
sys.thread.Deque.T |
Tries to retrieve an element from the front of this Deque.
If an element is available, it is removed from the queue and returned.
If no element is available and block is false, null is returned.
Otherwise, execution blocks until an element is available and returns it.
| Name | Type |
|---|---|
block |
Bool |
| Returns |
|---|
| Null<sys.thread.Deque.T> |
new(): VoidCreate a new Deque instance which is initially empty.
Private Members
q: Dynamic