| 64 | } |
| 65 | |
| 66 | void 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 | |
| 72 | void MainThreadExecutor::Shutdown() { |
| 73 | if (std::atomic_exchange(&state_, State::kShutdown) == State::kShutdown) |
nothing calls this directly
no outgoing calls
no test coverage detected