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

Method set_task

implementation/endpoints/src/timer.cpp:68–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68[[nodiscard]] bool timer::set_task(task_t _task) {
69 std::scoped_lock lock{mtx_};
70 if (state_ != state_e::STOPPED) {
71 return false;
72 }
73 task_ = std::move(_task);
74 return true;
75}
76
77void timer::stop_unlocked() {
78 if (is_value(state_).any_of(state_e::IN_TASK_STARTED, state_e::IN_TASK)) {

Callers 2

createMethod · 0.80
createMethod · 0.80

Calls

no outgoing calls

Tested by 2

createMethod · 0.64
createMethod · 0.64