A thread-safe queue.
More...
◆ enqueueWithItem:
- (void) enqueueWithItem: |
|
(T) |
item |
|
Add the item to the end of the queue.
- Parameters
-
◆ init
Creates a new ConcurrentQueue.
◆ isEmpty
Gets true if the queue is empty.
◆ managedConcurrentQueue
Creates a new ConcurrentQueue.
◆ tryDequeueWithItem:
- (bool) tryDequeueWithItem: |
|
(T *) |
item |
|
Removes and returns the item at the front of the queue.
- Parameters
-
- Returns
- True if item received, false if no item.
◆ tryPeekWithItem:
- (bool) tryPeekWithItem: |
|
(T *) |
item |
|
Peeks at the first item in the queue.
- Parameters
-
item | The item at the front of the queue. |
- Returns
- False if queue is empty. True if first item peeked at.
◆ __pad0__