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

Function SendSignal

cpp/src/arrow/util/io_util.cc:2087–2095  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2085}
2086
2087Status SendSignal(int signum) {
2088 if (raise(signum) == 0) {
2089 return Status::OK();
2090 }
2091 if (errno == EINVAL) {
2092 return Status::Invalid("Invalid signal number ", signum);
2093 }
2094 return IOErrorFromErrno(errno, "Failed to raise signal");
2095}
2096
2097Status SendSignalToThread(int signum, uint64_t thread_id) {
2098#ifndef ARROW_ENABLE_THREADING

Callers 2

TriggerSignalMethod · 0.85
TEST_FFunction · 0.85

Calls 3

IOErrorFromErrnoFunction · 0.85
OKFunction · 0.50
InvalidFunction · 0.50

Tested by 2

TriggerSignalMethod · 0.68
TEST_FFunction · 0.68