void session::start_dht() { #ifndef TORRENT_DISABLE_DHT // the state is loaded in load_state() TORRENT_ASYNC_CALL(start_dht); #endif }
session::~session() { aux::dump_call_profile(); TORRENT_ASSERT(m_impl); TORRENT_ASYNC_CALL(abort); if (m_thread && m_thread.unique()) m_thread->join(); }
session::~session() { #ifdef TORRENT_MEMDEBUG stop_malloc_debug(); #endif TORRENT_ASSERT(m_impl); // if there is at least one destruction-proxy // abort the session and let the destructor // of the proxy to syncronize if (!m_impl.unique()) { TORRENT_ASYNC_CALL(abort); } }
session::~session() { aux::dump_call_profile(); TORRENT_ASSERT(m_impl); TORRENT_ASYNC_CALL(abort); #if defined TORRENT_ASIO_DEBUGGING int counter = 0; while (log_async()) { sleep(1000); ++counter; printf("\x1b[2J\x1b[0;0H\x1b[33m==== Waiting to shut down: %d ==== \x1b[0m\n\n" , counter); } async_dec_threads(); fprintf(stderr, "\n\nEXPECTS NO MORE ASYNC OPS\n\n\n"); #endif if (m_thread && m_thread.unique()) m_thread->join(); }
void session::stop_dht() { TORRENT_ASYNC_CALL(stop_dht); }
void session::start_dht() { // the state is loaded in load_state() TORRENT_ASYNC_CALL(start_dht); }
void session::resume() { TORRENT_ASYNC_CALL(resume); }
void session::pause() { TORRENT_ASYNC_CALL(pause); }
void session::post_torrent_updates() { TORRENT_ASYNC_CALL(post_torrent_updates); }
void session::stop_upnp() { TORRENT_ASYNC_CALL(stop_upnp); }
void session::stop_natpmp() { TORRENT_ASYNC_CALL(stop_natpmp); }
void session::stop_lsd() { TORRENT_ASYNC_CALL(stop_lsd); }
void feed_handle::update_feed() { TORRENT_ASYNC_CALL(update_feed); }
void session::stop_dht() { #ifndef TORRENT_DISABLE_DHT TORRENT_ASYNC_CALL(stop_dht); #endif }