diff options
author | NanoAkron <nanoakron@users.noreply.github.com> | 2016-10-03 02:06:55 +0100 |
---|---|---|
committer | NanoAkron <nanoakron@users.noreply.github.com> | 2016-10-03 02:06:55 +0100 |
commit | 6390673137955a158ac3a8082d7f47ff4a03c7fd (patch) | |
tree | 0e9308aafba3c05bb02ae31b661363f1b08eac2a /contrib/epee/include/net/abstract_tcp_server2.inl | |
parent | Merge pull request #1124 (diff) | |
download | monero-6390673137955a158ac3a8082d7f47ff4a03c7fd.tar.xz |
Removed all code related to fast_exit
Diffstat (limited to 'contrib/epee/include/net/abstract_tcp_server2.inl')
-rw-r--r-- | contrib/epee/include/net/abstract_tcp_server2.inl | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/contrib/epee/include/net/abstract_tcp_server2.inl b/contrib/epee/include/net/abstract_tcp_server2.inl index 94dbe7458..dbdfbc74d 100644 --- a/contrib/epee/include/net/abstract_tcp_server2.inl +++ b/contrib/epee/include/net/abstract_tcp_server2.inl @@ -827,7 +827,7 @@ POP_WARNINGS } CRITICAL_REGION_END(); // Wait for all threads in the pool to exit. - if (wait) // && ! ::cryptonote::core::get_is_stopping()) // TODO fast_exit + if (wait) { _fact("JOINING all threads"); for (std::size_t i = 0; i < m_threads.size(); ++i) { @@ -897,10 +897,6 @@ POP_WARNINGS template<class t_protocol_handler> void boosted_tcp_server<t_protocol_handler>::send_stop_signal() { - if (::cryptonote::core::get_fast_exit() == true) - { - detach_threads(); - } m_stop_signal_sent = true; TRY_ENTRY(); connections_mutex.lock(); @@ -1144,14 +1140,6 @@ POP_WARNINGS return true; CATCH_ENTRY_L0("boosted_tcp_server<t_protocol_handler>::connect_async", false); } - //--------------------------------------------------------------------------------- - template<class t_protocol_handler> - void boosted_tcp_server<t_protocol_handler>::detach_threads() - { - for (auto thread : m_threads) - thread->detach(); - } - } // namespace } // namespace |