fm.liveswitch.ThreadDispatchQueue< T > Class Template Reference

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...
 

Detailed Description

A single-thread dispatch queue.

Constructor & Destructor Documentation

◆ ThreadDispatchQueue()

Initializes a new instance of the fm.liveswitch.ThreadDispatchQueue class.

Parameters
actionThe processing action.

Member Function Documentation

◆ destroy()

void fm.liveswitch.ThreadDispatchQueue< T >.destroy ( )

Destroys the queue.

Implements fm.liveswitch.IDispatchQueue< T >.

◆ enqueue()

void fm.liveswitch.ThreadDispatchQueue< T >.enqueue ( item)

Enqueues an item for processing.

Parameters
itemThe item.

Implements fm.liveswitch.IDispatchQueue< T >.

◆ getQueueCount()

long fm.liveswitch.ThreadDispatchQueue< T >.getQueueCount ( )

Gets the number of items in the queue.

Implements fm.liveswitch.IDispatchQueue< T >.

◆ waitForCompletion()

void fm.liveswitch.ThreadDispatchQueue< T >.waitForCompletion ( )

Blocks until the queue is empty.