MCPcopy Create free account
hub / github.com/Icinga/icinga2 / Stop

Method Stop

lib/checker/checkercomponent.cpp:77–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void CheckerComponent::Stop(bool runtimeRemoved)
78{
79 {
80 std::unique_lock<std::mutex> lock(m_Mutex);
81 m_Stopped = true;
82 m_CV.notify_all();
83 }
84
85 m_WaitGroup->Join();
86 m_ResultTimer->Stop(true);
87 m_Thread.join();
88
89 Log(LogInformation, "CheckerComponent")
90 << "'" << GetName() << "' stopped.";
91
92 ObjectImpl<CheckerComponent>::Stop(runtimeRemoved);
93}
94
95void CheckerComponent::CheckThreadProc()
96{

Callers

nothing calls this directly

Calls 2

LogClass · 0.85
JoinMethod · 0.45

Tested by

no test coverage detected