|
Expression Templates Library (ETL)
|
The default thread engine when auto-parallelization is not enabled. More...
#include <thread_engine.hpp>
Static Public Member Functions | |
| static void | acquire () |
| Acquire the thread engine. More... | |
| template<typename Functor , typename... Args> | |
| static void | schedule ([[maybe_unused]] Functor &&fun, [[maybe_unused]] Args &&... args) |
| Schedule a new task. More... | |
| static void | wait () |
| Wait for all the scheduled threads to finish their task. | |
The default thread engine when auto-parallelization is not enabled.
This should only be used by ETL internals such as the evaluator and the engine_dispatch functions.
|
inlinestatic |
Acquire the thread engine.
This function must be called before tasks are being scheduled. It is mostly to ensure that selection is done correctly and that the thread engine is used correclty.
|
inlinestatic |
Schedule a new task.
| fun | The functor to execute |
1.8.13