MCPcopy Create free account
hub / github.com/ceph/ceph / start_monitoring

Method start_monitoring

src/mgr/ThreadMonitor.cc:21–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19#define dout_prefix *_dout << "mgr[ThreadMonitor] " << __func__ << " "
20
21void ThreadMonitor::start_monitoring() {
22 if (running.exchange(true)) {
23 return;
24 }
25
26 dout(20) << "Starting monitoring thread." << dendl;
27 monitor_thread = std::make_unique<std::thread>(&ThreadMonitor::monitoring_loop, this);
28}
29
30void ThreadMonitor::stop_monitoring() {
31 if (!running.exchange(false)) {

Callers 1

initMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected