| 298 | } // namespace |
| 299 | |
| 300 | Result<StopSource*> SetSignalStopSource() { |
| 301 | auto stop_state = SignalStopState::instance(); |
| 302 | if (stop_state->enabled()) { |
| 303 | return Status::Invalid("Signal stop source already set up"); |
| 304 | } |
| 305 | stop_state->Enable(); |
| 306 | return stop_state->stop_source(); |
| 307 | } |
| 308 | |
| 309 | void ResetSignalStopSource() { |
| 310 | auto stop_state = SignalStopState::instance(); |
no test coverage detected