10 #include "../utils/message.h" 20 "Max number of threads = " + std::to_string(omp_get_max_threads()));
27 while (error_msg.empty())
31 bool finish_loop =
true;
33 for (
const auto &p : procs)
39 finish_loop &= p->run();
42 if (finish_loop)
break;
47 #pragma omp critical (inv_omp) 60 if (!error_msg.empty())
std::string Str
Str is an alias for string.
This file has a definition of InvOMP class, which is a subclass of Invoker class. ...
std::vector< T > Vec
Vec is an alias for vector (same as list in Python).
void runtime_error(const Str &msg)
Raise (for Python) and throw (for C++) a runtime error.
void log(const Str &msg)
Logging a message.
Namespace for utility functions.
std::shared_ptr< T > ShPtr
ShPtr is an alias for shared pointer.
virtual void execute_impl(const Vec< ShPtr< Processor >> &procs) override
This method overrides Invoker::execute_impl.