AsyncQueue Class Reference

Asynchronous queue for commands. More...

Inheritance diagram for AsyncQueue:

Inheritance graph
[legend]
Collaboration diagram for AsyncQueue:

Collaboration graph
[legend]

Public Member Functions

void push (const CmdGenericPtr &rcCommand, bool removePrev=true)
 Add a command in the queue, after having removed the commands of the same type already in the queue if needed.
void remove (const string &rType, const CmdGenericPtr &rcCommand)
 Remove the commands of the given type.
void flush ()
 Flush the queue and execute the commands.

Static Public Member Functions

static AsyncQueueinstance (intf_thread_t *pIntf)
 Get the instance of AsyncQueue Returns NULL if initialization failed.
static void destroy (intf_thread_t *pIntf)
 Destroy the instance of AsyncQueue.

Friends

class CmdFlush

Data Structures

class  CmdFlush

Detailed Description

Asynchronous queue for commands.


Member Function Documentation

AsyncQueue * AsyncQueue::instance ( intf_thread_t pIntf  )  [static]

Get the instance of AsyncQueue Returns NULL if initialization failed.

void AsyncQueue::destroy ( intf_thread_t pIntf  )  [static]

Destroy the instance of AsyncQueue.

void AsyncQueue::push ( const CmdGenericPtr rcCommand,
bool  removePrev = true 
)

Add a command in the queue, after having removed the commands of the same type already in the queue if needed.

void AsyncQueue::remove ( const string &  rType,
const CmdGenericPtr rcCommand 
)

Remove the commands of the given type.

void AsyncQueue::flush (  ) 

Flush the queue and execute the commands.


Friends And Related Function Documentation

friend class CmdFlush [friend]


The documentation for this class was generated from the following files:
Generated on Wed Aug 13 08:12:30 2008 for VLC by  doxygen 1.5.1