MCPcopy Create free account
hub / github.com/PeterFWS/Structure-PLP-SLAM / check_and_execute_pause

Method check_and_execute_pause

src/PLPSLAM/tracking_module.cc:1121–1134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1119 }
1120
1121 bool tracking_module::check_and_execute_pause()
1122 {
1123 std::lock_guard<std::mutex> lock(mtx_pause_);
1124 if (pause_is_requested_)
1125 {
1126 is_paused_ = true;
1127 spdlog::info("pause tracking module");
1128 return true;
1129 }
1130 else
1131 {
1132 return false;
1133 }
1134 }
1135
1136} // namespace PLPSLAM

Callers

nothing calls this directly

Calls 1

infoFunction · 0.85

Tested by

no test coverage detected