|
Ingen
0.5.1
|
Inheritance diagram for Ingen::Server::Task:
Collaboration diagram for Ingen::Server::Task:Public Types | |
| enum | Mode { Mode::SINGLE, Mode::SEQUENTIAL, Mode::PARALLEL } |
Public Member Functions | |
| Task (Mode mode, BlockImpl *block=NULL) | |
| Task & | operator= (const Task ©) |
| Task (const Task ©) | |
| void | run (RunContext &context) |
| Run task in the given context. More... | |
| void | dump (std::function< void(const std::string &)> sink, unsigned indent, bool first) const |
| Pretty print task to the given stream (recursively). More... | |
| void | simplify () |
| Simplify task expression. More... | |
| Task * | steal (RunContext &context) |
| Steal a child task from this task (succeeds for PARALLEL only). More... | |
| Mode | mode () const |
| BlockImpl * | block () const |
| bool | done () const |
| void | set_done (bool done) |
|
strong |
| void Ingen::Server::Task::run | ( | RunContext & | context | ) |
Run task in the given context.
References PARALLEL, Ingen::Server::BlockImpl::process(), run(), SEQUENTIAL, SINGLE, and steal().
Referenced by run().
| void Ingen::Server::Task::dump | ( | std::function< void(const std::string &)> | sink, |
| unsigned | indent, | ||
| bool | first | ||
| ) | const |
Pretty print task to the given stream (recursively).
References SEQUENTIAL, and SINGLE.
| void Ingen::Server::Task::simplify | ( | ) |
Simplify task expression.
References SINGLE.
| Task * Ingen::Server::Task::steal | ( | RunContext & | context | ) |
Steal a child task from this task (succeeds for PARALLEL only).
References PARALLEL.
Referenced by Ingen::Server::Engine::locate(), and run().
1.8.12