MCPcopy Create free account
hub / github.com/ElementsProject/elements / Interrupt

Method Interrupt

src/net.cpp:2701–2723  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2699static CNetCleanup instance_of_cnetcleanup;
2700
2701void CConnman::Interrupt()
2702{
2703 {
2704 LOCK(mutexMsgProc);
2705 flagInterruptMsgProc = true;
2706 }
2707 condMsgProc.notify_all();
2708
2709 interruptNet();
2710 InterruptSocks5(true);
2711
2712 if (semOutbound) {
2713 for (int i=0; i<m_max_outbound; i++) {
2714 semOutbound->post();
2715 }
2716 }
2717
2718 if (semAddnode) {
2719 for (int i=0; i<nMaxAddnode; i++) {
2720 semAddnode->post();
2721 }
2722 }
2723}
2724
2725void CConnman::StopThreads()
2726{

Callers 1

InterruptFunction · 0.45

Calls 2

InterruptSocks5Function · 0.85
postMethod · 0.80

Tested by

no test coverage detected