[[arrow::export]]
| 34 | |
| 35 | // [[arrow::export]] |
| 36 | bool 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]] |
| 48 | bool CanRunWithCapturedR() { return MainRThread::GetInstance().Executor() == nullptr; } |
no test coverage detected