|
AndroMeta
2.0.0
|
A persistent multi-threaded queue for executing compiled MPLNode's. MPLNode's are compiled using the MPLObject class. More...
#include <MPLQueue.h>
Public Member Functions | |
| MPLQueue (size_t threads=1) | |
| ~MPLQueue () | |
| void | add (MPLNode *n) |
| void | clear () |
| void | run () |
| void | start () |
| void | await () |
A persistent multi-threaded queue for executing compiled MPLNode's. MPLNode's are compiled using the MPLObject class.
| Meta::MPLQueue::MPLQueue | ( | size_t | threads = 1 | ) |
Constructor.
| threads | The number of threads to execute MPLNode's concurrently with. Usually this is set the number of machine threads, cores, etc. |
Destructor.
| void Meta::MPLQueue::add | ( | MPLNode * | n | ) |
| void Meta::MPLQueue::await | ( | ) |
Await completion of the queue after start() has been called.
| void Meta::MPLQueue::clear | ( | ) |
Clear all nodes added to the queue.
| void Meta::MPLQueue::run | ( | ) |
Start execution and await completion of all nodes in the queue.
| void Meta::MPLQueue::start | ( | ) |
Start execution of all nodes in the queue and return immediately.
1.7.6.1