MCPcopy Create free account
hub / github.com/COVESA/vsomeip / stop

Method stop

implementation/endpoints/src/timer.cpp:46–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46void timer::stop() {
47 std::scoped_lock lock{mtx_};
48 if (is_value(state_).any_of(state_e::STOPPED, state_e::IN_TASK_STOPPED)) {
49 return;
50 }
51 stop_unlocked();
52}
53
54[[nodiscard]] bool timer::is_running() const {
55 std::scoped_lock lock{mtx_};

Callers 1

Calls 2

is_valueClass · 0.85
any_ofMethod · 0.80

Tested by

no test coverage detected