aboutsummaryrefslogtreecommitdiff
path: root/src/validationinterface.h
diff options
context:
space:
mode:
authorTheCharlatan <seb.kung@gmail.com>2023-11-27 11:46:36 +0100
committerTheCharlatan <seb.kung@gmail.com>2024-02-15 14:43:12 +0100
commit4abde2c4e3fd9b66394b79874583bdc2a9132c36 (patch)
treeb4b0f5e954380d093360d01b591a7b27d2959ecd /src/validationinterface.h
parent84f5c135b8118cbe15b8bfb4db80d61237987f64 (diff)
downloadbitcoin-4abde2c4e3fd9b66394b79874583bdc2a9132c36.tar.xz
[refactor] Make MainSignals RAII styled
Diffstat (limited to 'src/validationinterface.h')
-rw-r--r--src/validationinterface.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/validationinterface.h b/src/validationinterface.h
index 57e2716c11..fa63570c1f 100644
--- a/src/validationinterface.h
+++ b/src/validationinterface.h
@@ -160,13 +160,10 @@ private:
std::unique_ptr<MainSignalsImpl> m_internals;
public:
- CMainSignals();
+ CMainSignals(CScheduler& scheduler LIFETIMEBOUND);
+
~CMainSignals();
- /** Register a CScheduler to give callbacks which should run in the background (may only be called once) */
- void RegisterBackgroundSignalScheduler(CScheduler& scheduler);
- /** Unregister a CScheduler to give callbacks which should run in the background - these callbacks will now be dropped! */
- void UnregisterBackgroundSignalScheduler();
/** Call any remaining callbacks on the calling thread */
void FlushBackgroundCallbacks();