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

Function SetEnableSignalStopSource

r/src/safe-call-into-r-impl.cpp:36–45  ·  view source on GitHub ↗

[[arrow::export]]

Source from the content-addressed store, hash-verified

34
35// [[arrow::export]]
36bool SetEnableSignalStopSource(bool enabled) {
37 bool was_enabled = MainRThread::GetInstance().SignalStopSourceEnabled();
38 if (was_enabled && !enabled) {
39 MainRThread::GetInstance().DisableSignalStopSource();
40 } else if (!was_enabled && enabled) {
41 MainRThread::GetInstance().EnableSignalStopSource();
42 }
43
44 return was_enabled;
45}
46
47// [[arrow::export]]
48bool CanRunWithCapturedR() { return MainRThread::GetInstance().Executor() == nullptr; }

Callers 1

Calls 3

Tested by

no test coverage detected