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

Method WaitForSignals

cpp/src/arrow/flight/server.cc:123–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121 }
122
123 static void WaitForSignals(std::shared_ptr<SelfPipe> self_pipe) {
124 // Wait for a signal handler to wake up the pipe
125 auto st = self_pipe->Wait().status();
126 // Status::Invalid means the pipe was shutdown without any wakeup
127 if (!st.ok() && !st.IsInvalid()) {
128 ARROW_LOG(FATAL) << "Failed to wait on self-pipe: " << st.ToString();
129 }
130 auto instance = running_instance_.load();
131 if (instance != nullptr) {
132 ARROW_WARN_NOT_OK(instance->transport_->Shutdown(), "Error shutting down server");
133 }
134 }
135};
136
137std::atomic<FlightServerBase::Impl*> FlightServerBase::Impl::running_instance_;

Callers

nothing calls this directly

Calls 6

statusMethod · 0.45
WaitMethod · 0.45
okMethod · 0.45
ToStringMethod · 0.45
loadMethod · 0.45
ShutdownMethod · 0.45

Tested by

no test coverage detected