1#include "activeModule.hpp"
5void ActiveModule_t::_runner(ActiveModule_t *m) {
6 Log.
d(ID,
"Starting thread", m->id);
8 Log.
d(ID,
"Thread stopped", m->id);
11void ActiveModule_t::start() {
12 std::lock_guard<std::mutex> lock(vMux);
14 threadID = Thread::addThread((Thread::ThreadFunction)_runner, (
void *)
this, stackSize, 0);
16 Log.
f(ID,
"Failed to start thread",
id);
21void ActiveModule_t::stop() {
22 std::lock_guard<std::mutex> lock(vMux);
24 Thread::kill(threadID);
25 Thread::wait(threadID);
Logging::Log_t Log
The global logging object.
void d(LOG_TAG TAG, LOG_MSG message)
Log a string using a debug tag.
void f(LOG_TAG TAG, LOG_MSG message)
Log a string using a fatal tag.