You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Merge bitcoin#12381: Remove more boost threads
004f999 boost: drop boost threads for [alert|block|wallet]notify (Cory Fields)
0827267 boost: drop boost threads from torcontrol (Cory Fields)
ba91724 boost: remove useless threadGroup parameter from Discover (Cory Fields)
f26866b boost: drop boost threads for upnp (Cory Fields)
Pull request description:
This doesn't completely get rid of boost::thread, but this batch should be easy to review, and leaves us with only threadGroup (scheduler + scriptcheck) remaining.
Note to reviewers: The upnp diff changes a bunch of whitespace, it's much more clear with 'git diff -w'
Tree-SHA512: 5a356798d0785f93ed143d1f0afafe890bc82f0d470bc969473da2d2aa78bcb9b096f7ba11b92564d546fb447d4bd0d347e7842994ea0170aafd53fda7e0a66e
* fix using std::thread
Signed-off-by: pasta <pasta@dashboost.org>
* Switch to std::thread in NotifyTransactionLock
* Move StopTorControl call from Shutdown to PrepareShutdown
Co-authored-by: Wladimir J. van der Laan <laanwj@gmail.com>
Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>
Copy file name to clipboardExpand all lines: src/init.cpp
+12-7Lines changed: 12 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -220,6 +220,7 @@ void Interrupt()
220
220
InterruptREST();
221
221
InterruptTorControl();
222
222
llmq::InterruptLLMQSystem();
223
+
InterruptMapPort();
223
224
if (g_connman)
224
225
g_connman->Interrupt();
225
226
}
@@ -251,14 +252,16 @@ void PrepareShutdown()
251
252
boolfRPCInWarmup = RPCIsInWarmup(&statusmessage);
252
253
253
254
g_wallet_init_interface->Flush();
254
-
MapPort(false);
255
+
StopMapPort();
255
256
256
257
// Because these depend on each-other, we make sure that neither can be
257
258
// using the other before destroying them.
258
259
if (peerLogic) UnregisterValidationInterface(peerLogic.get());
259
260
if (g_connman) g_connman->Stop();
260
261
// if (g_txindex) g_txindex->Stop(); //TODO watch out when backporting bitcoin#13033 (don't accidently put the reset here, as we've already backported bitcoin#13894)
261
262
263
+
StopTorControl();
264
+
262
265
// After everything has been shut down, but before things get flushed, stop the
263
266
// CScheduler/checkqueue threadGroup
264
267
threadGroup.interrupt_all();
@@ -378,8 +381,7 @@ void Shutdown()
378
381
if(!fRequestRestart) {
379
382
PrepareShutdown();
380
383
}
381
-
// Shutdown part 2: Stop TOR thread and delete wallet instance
0 commit comments