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

Method DoHandleSignal

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

Source from the content-addressed store, hash-verified

231 }
232
233 void DoHandleSignal(int signum) {
234 // async-signal-safe code only
235 SelfPipe* self_pipe = self_pipe_ptr_.load();
236 if (self_pipe) {
237 self_pipe->Send(/*payload=*/signum);
238 }
239 ReinstateSignalHandler(signum, &HandleSignal);
240 }
241
242 static void ReceiveSignals(std::shared_ptr<SelfPipe> self_pipe) {
243 // Wait for signals on the self-pipe and propagate them to the current StopSource

Callers 1

HandleSignalMethod · 0.95

Calls 3

ReinstateSignalHandlerFunction · 0.85
SendMethod · 0.80
loadMethod · 0.45

Tested by

no test coverage detected