A single-thread dispatch queue. More...
Public Member Functions | |
void | destroy () |
Destroys the queue. More... | |
void | enqueue (T item) |
Enqueues an item for processing. More... | |
long | getQueueCount () |
Gets the number of items in the queue. More... | |
ThreadDispatchQueue (fm.liveswitch.IAction1< T > action) | |
Initializes a new instance of the fm.liveswitch.ThreadDispatchQueue class. More... | |
void | waitForCompletion () |
Blocks until the queue is empty. More... | |
A single-thread dispatch queue.
fm.liveswitch.ThreadDispatchQueue< T >.ThreadDispatchQueue | ( | fm.liveswitch.IAction1< T > | action | ) |
Initializes a new instance of the fm.liveswitch.ThreadDispatchQueue class.
action | The processing action. |
void fm.liveswitch.ThreadDispatchQueue< T >.destroy | ( | ) |
Destroys the queue.
Implements fm.liveswitch.IDispatchQueue< T >.
void fm.liveswitch.ThreadDispatchQueue< T >.enqueue | ( | T | item | ) |
Enqueues an item for processing.
item | The item. |
Implements fm.liveswitch.IDispatchQueue< T >.
long fm.liveswitch.ThreadDispatchQueue< T >.getQueueCount | ( | ) |
Gets the number of items in the queue.
Implements fm.liveswitch.IDispatchQueue< T >.
void fm.liveswitch.ThreadDispatchQueue< T >.waitForCompletion | ( | ) |
Blocks until the queue is empty.