| 2397 | instance_of_cnetcleanup; |
| 2398 | |
| 2399 | void 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 | |
| 2423 | void CConnman::Stop() |
| 2424 | { |
no test coverage detected