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

Method Interrupt

src/net.cpp:2399–2421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2397instance_of_cnetcleanup;
2398
2399void CConnman::Interrupt()
2400{
2401 {
2402 std::lock_guard<std::mutex> lock(mutexMsgProc);
2403 flagInterruptMsgProc = true;
2404 }
2405 condMsgProc.notify_all();
2406
2407 interruptNet();
2408 InterruptSocks5(true);
2409
2410 if (semOutbound) {
2411 for (int i=0; i<(nMaxOutbound + nMaxFeeler); i++) {
2412 semOutbound->post();
2413 }
2414 }
2415
2416 if (semAddnode) {
2417 for (int i=0; i<nMaxAddnode; i++) {
2418 semAddnode->post();
2419 }
2420 }
2421}
2422
2423void CConnman::Stop()
2424{

Callers 1

InterruptFunction · 0.45

Calls 2

InterruptSocks5Function · 0.85
postMethod · 0.80

Tested by

no test coverage detected