MCPcopy Create free account
hub / github.com/apache/arrow / SetSignalStopSource

Function SetSignalStopSource

cpp/src/arrow/util/cancel.cc:300–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298} // namespace
299
300Result<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
309void ResetSignalStopSource() {
310 auto stop_state = SignalStopState::instance();

Callers 1

Calls 4

EnableMethod · 0.80
stop_sourceMethod · 0.80
InvalidFunction · 0.50
enabledMethod · 0.45

Tested by

no test coverage detected