MCPcopy Create free account
hub / github.com/AimRT/AimRT / Start

Method Start

src/runtime/core/executor/main_thread_executor.cc:66–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void MainThreadExecutor::Start() {
67 AIMRT_CHECK_ERROR_THROW(
68 std::atomic_exchange(&state_, State::kStart) == State::kInit,
69 "Main thread executor can only run when state is 'Init'.");
70}
71
72void MainThreadExecutor::Shutdown() {
73 if (std::atomic_exchange(&state_, State::kShutdown) == State::kShutdown)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected