MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / Interrupt

Function Interrupt

src/init.cpp:289–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287#endif
288
289void Interrupt(NodeContext& node)
290{
291#if HAVE_SYSTEM
292 ShutdownNotify(*node.args);
293#endif
294 // Wake any threads that may be waiting for the tip to change.
295 if (node.notifications) WITH_LOCK(node.notifications->m_tip_block_mutex, node.notifications->m_tip_block_cv.notify_all());
296 InterruptHTTPServer();
297 InterruptHTTPRPC();
298 InterruptRPC();
299 InterruptREST();
300 if (node.tor_controller) {
301 node.tor_controller->Interrupt();
302 }
303 InterruptMapPort();
304 if (node.connman)
305 node.connman->Interrupt();
306 for (auto* index : node.indexes) {
307 index->Interrupt();
308 }
309}
310
311void Shutdown(NodeContext& node)
312{

Callers 6

~TorControllerMethod · 0.85
bitcoind.cppFile · 0.85
~CConnmanMethod · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
~BaseIndexMethod · 0.85
startShutdownMethod · 0.85

Calls 7

ShutdownNotifyFunction · 0.85
InterruptHTTPServerFunction · 0.85
InterruptHTTPRPCFunction · 0.85
InterruptRPCFunction · 0.85
InterruptRESTFunction · 0.85
InterruptMapPortFunction · 0.85
InterruptMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.68