void session::start_dht()
	{
#ifndef TORRENT_DISABLE_DHT
		// the state is loaded in load_state()
		TORRENT_ASYNC_CALL(start_dht);
#endif
	}
Exemple #2
0
	session::~session()
	{
		aux::dump_call_profile();

		TORRENT_ASSERT(m_impl);
		TORRENT_ASYNC_CALL(abort);

		if (m_thread && m_thread.unique())
			m_thread->join();
	}
Exemple #3
0
	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);
		}
	}
Exemple #4
0
	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();
	}
Exemple #5
0
	void session::stop_dht()
	{
		TORRENT_ASYNC_CALL(stop_dht);
	}
Exemple #6
0
	void session::start_dht()
	{
		// the state is loaded in load_state()
		TORRENT_ASYNC_CALL(start_dht);
	}
Exemple #7
0
	void session::resume()
	{
		TORRENT_ASYNC_CALL(resume);
	}
Exemple #8
0
	void session::pause()
	{
		TORRENT_ASYNC_CALL(pause);
	}
Exemple #9
0
	void session::post_torrent_updates()
	{
		TORRENT_ASYNC_CALL(post_torrent_updates);
	}
Exemple #10
0
	void session::stop_upnp()
	{
		TORRENT_ASYNC_CALL(stop_upnp);
	}
Exemple #11
0
	void session::stop_natpmp()
	{
		TORRENT_ASYNC_CALL(stop_natpmp);
	}
Exemple #12
0
	void session::stop_lsd()
	{
		TORRENT_ASYNC_CALL(stop_lsd);
	}
Exemple #13
0
void feed_handle::update_feed()
{
	TORRENT_ASYNC_CALL(update_feed);
}
	void session::stop_dht()
	{
#ifndef TORRENT_DISABLE_DHT
		TORRENT_ASYNC_CALL(stop_dht);
#endif
	}