aboutsummaryrefslogtreecommitdiff
path: root/src/init.h
diff options
context:
space:
mode:
authorRyan Ofsky <ryan@ofsky.org>2023-07-07 17:32:54 -0400
committerRyan Ofsky <ryan@ofsky.org>2023-12-04 15:39:15 -0400
commit6db04be102807ee0120981a9b8de62a55439dabb (patch)
tree18be6e4dbf867c9b5540b2cee1247538dc0f782e /src/init.h
parent213542b625a6a4885fcbdfe236629a5f381eeb05 (diff)
downloadbitcoin-6db04be102807ee0120981a9b8de62a55439dabb.tar.xz
Get rid of shutdown.cpp/shutdown.h, use SignalInterrupt directly
This change is mostly a refectoring that removes some code and gets rid of an unnecessary layer of indirection after #27861 But it is not a pure refactoring since StartShutdown, AbortShutdown, and WaitForShutdown functions used to abort on failure, and the replacement code logs or returns errors instead.
Diffstat (limited to 'src/init.h')
-rw-r--r--src/init.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/init.h b/src/init.h
index da8255cda3..ead5f5e0d2 100644
--- a/src/init.h
+++ b/src/init.h
@@ -26,8 +26,10 @@ namespace node {
struct NodeContext;
} // namespace node
-/** Initialize node context variables. */
+/** Initialize node context shutdown and args variables. */
void InitContext(node::NodeContext& node);
+/** Return whether node shutdown was requested. */
+bool ShutdownRequested(node::NodeContext& node);
/** Interrupt threads */
void Interrupt(node::NodeContext& node);