| 59 | } |
| 60 | |
| 61 | void CheckerComponent::Start(bool runtimeCreated) |
| 62 | { |
| 63 | ObjectImpl<CheckerComponent>::Start(runtimeCreated); |
| 64 | |
| 65 | Log(LogInformation, "CheckerComponent") |
| 66 | << "'" << GetName() << "' started."; |
| 67 | |
| 68 | |
| 69 | m_Thread = std::thread([this]() { CheckThreadProc(); }); |
| 70 | |
| 71 | m_ResultTimer = Timer::Create(); |
| 72 | m_ResultTimer->SetInterval(5); |
| 73 | m_ResultTimer->OnTimerExpired.connect([this](const Timer * const&) { ResultTimerHandler(); }); |
| 74 | m_ResultTimer->Start(); |
| 75 | } |
| 76 | |
| 77 | void CheckerComponent::Stop(bool runtimeRemoved) |
| 78 | { |
nothing calls this directly
no test coverage detected