| 2699 | static CNetCleanup instance_of_cnetcleanup; |
| 2700 | |
| 2701 | void 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 | |
| 2725 | void CConnman::StopThreads() |
| 2726 | { |
no test coverage detected