|
void | addRunnable (StoppableRunnable::Ptr runnable) |
|
void | addLoop (StoppableLoop::Ptr loop) |
|
void | setAutoStart (bool enable) |
|
void | setStopParallel (bool parallel) |
| Set whether stopAll() should run in parallel.
|
|
void | start () override |
|
void | stop () override |
|
void | autoStart () |
|
| Loggable (const ClassInfo &info) |
|
| Loggable (const std::type_info &info) |
|
|
void | stopAll (std::list< Stopper > &list) |
| Stop all loop in reverse order. If the property stopParallel is true then the loops are stopped in parallel (multiple threads). More...
|
|
void | stopParallel (std::list< Stopper > &list) |
| Stops the given list of loops in parallel. Loops that have been stopped are removed from the list.
|
|
void | setupLogger (Poco::Logger *logger=0) const |
|
Poco::Logger & | logger () const |
|
|
static Poco::Logger & | forMethod (const char *name) |
|
static Poco::Logger & | forClass (const ClassInfo &info) |
|
static Poco::Logger & | forClass (const std::type_info &info) |
|
template<typename T > |
static Poco::Logger & | forInstance (const T *i) |
|
static void | configureSimple (Poco::Logger &logger, const std::string &level) |
|
static void | logException (Poco::Logger &logger, const Poco::Message::Priority priority, const Poco::Exception &e, const char *file, size_t line) |
|
void LoopRunner::start |
( |
| ) |
|
|
overridevirtual |
void LoopRunner::stop |
( |
| ) |
|
|
overridevirtual |
void LoopRunner::stopAll |
( |
std::list< Stopper > & |
list | ) |
|
|
protected |
Stop all loop in reverse order. If the property stopParallel is true then the loops are stopped in parallel (multiple threads).
If there is an issue with starting threads, the loops that were not stopped in parallel are stopped sequentially as a fallback.
The documentation for this class was generated from the following files:
- /var/lib/jenkins/workspace/beeeon-gateway-master/base/src/loop/LoopRunner.h
- /var/lib/jenkins/workspace/beeeon-gateway-master/base/src/loop/LoopRunner.cpp