| 111 | } |
| 112 | |
| 113 | void SimpleThreadExecutor::Start() { |
| 114 | AIMRT_CHECK_ERROR_THROW( |
| 115 | std::atomic_exchange(&state_, State::kStart) == State::kInit, |
| 116 | "Method can only be called when state is 'Init'."); |
| 117 | } |
| 118 | |
| 119 | void SimpleThreadExecutor::Shutdown() { |
| 120 | if (std::atomic_exchange(&state_, State::kShutdown) == State::kShutdown) |
nothing calls this directly
no outgoing calls
no test coverage detected