AndroMeta  2.0.0
Public Member Functions
Meta::MPLQueue Class Reference

A persistent multi-threaded queue for executing compiled MPLNode's. MPLNode's are compiled using the MPLObject class. More...

#include <MPLQueue.h>

List of all members.

Public Member Functions

 MPLQueue (size_t threads=1)
 ~MPLQueue ()
void add (MPLNode *n)
void clear ()
void run ()
void start ()
void await ()

Detailed Description

A persistent multi-threaded queue for executing compiled MPLNode's. MPLNode's are compiled using the MPLObject class.


Constructor & Destructor Documentation

Meta::MPLQueue::MPLQueue ( size_t  threads = 1)

Constructor.

Parameters:
threadsThe number of threads to execute MPLNode's concurrently with. Usually this is set the number of machine threads, cores, etc.

Destructor.


Member Function Documentation

void Meta::MPLQueue::add ( MPLNode *  n)

Add a compiled MPLNode to the queue to be executed upon calling run() or start(). The node remains in the queue until clear() is called.

Await completion of the queue after start() has been called.

Clear all nodes added to the queue.

Start execution and await completion of all nodes in the queue.

Start execution of all nodes in the queue and return immediately.


The documentation for this class was generated from the following file: