FMIceLinkManagedConcurrentQueue Class Reference

Inherits from NSObject
Conforms to T
__covariant
Declared in FMIceLinkManagedConcurrentQueue.h
FMIceLinkManagedConcurrentQueue.m

Overview

A thread-safe queue.

The type that the queue holds.

– count

Gets the amount of items in this queue.
- (int)count

Discussion

Gets the amount of items in this queue.

Declared In

FMIceLinkManagedConcurrentQueue.h

– enqueueWithItem:

Add the item to the end of the queue.
- (void)enqueueWithItem:(T)item

Parameters

item

The item to add.

Discussion

Add the item to the end of the queue.

Declared In

FMIceLinkManagedConcurrentQueue.h

– init

Creates a new ConcurrentQueue.
- (instancetype)init

Discussion

Creates a new ConcurrentQueue.

Declared In

FMIceLinkManagedConcurrentQueue.h

– isEmpty

Gets true if the queue is empty.
- (bool)isEmpty

Discussion

Gets true if the queue is empty.

Declared In

FMIceLinkManagedConcurrentQueue.h

+ managedConcurrentQueue

Creates a new ConcurrentQueue.
+ (FMIceLinkManagedConcurrentQueue *)managedConcurrentQueue

Discussion

Creates a new ConcurrentQueue.

Declared In

FMIceLinkManagedConcurrentQueue.h

– tryDequeueWithItem:

Removes and returns the item at the front of the queue.
- (bool)tryDequeueWithItem:(T *)item

Parameters

item

The dequeued item.

Return Value

True if item received, false if no item.

Discussion

Removes and returns the item at the front of the queue.

Declared In

FMIceLinkManagedConcurrentQueue.h

– tryPeekWithItem:

Peeks at the first item in the queue.
- (bool)tryPeekWithItem:(T *)item

Parameters

item

The item at the front of the queue.

Return Value

False if queue is empty. True if first item peeked at.

Discussion

Peeks at the first item in the queue.

Declared In

FMIceLinkManagedConcurrentQueue.h