本文整理汇总了C++中TORRENT_ASYNC_CALL函数的典型用法代码示例。如果您正苦于以下问题:C++ TORRENT_ASYNC_CALL函数的具体用法?C++ TORRENT_ASYNC_CALL怎么用?C++ TORRENT_ASYNC_CALL使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了TORRENT_ASYNC_CALL函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: TORRENT_ASYNC_CALL
void session::start_dht()
{
#ifndef TORRENT_DISABLE_DHT
// the state is loaded in load_state()
TORRENT_ASYNC_CALL(start_dht);
#endif
}
示例2: TORRENT_ASSERT
session::~session()
{
aux::dump_call_profile();
TORRENT_ASSERT(m_impl);
TORRENT_ASYNC_CALL(abort);
if (m_thread && m_thread.unique())
m_thread->join();
}
示例3: stop_malloc_debug
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);
}
}
示例4: TORRENT_ASSERT
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();
}
示例5: TORRENT_ASYNC_CALL
void session::stop_dht()
{
TORRENT_ASYNC_CALL(stop_dht);
}
示例6: TORRENT_ASYNC_CALL
void feed_handle::update_feed()
{
TORRENT_ASYNC_CALL(update_feed);
}