From 6188d110c5648c205990c6cf0a8363d619d9cc79 Mon Sep 17 00:00:00 2001 From: rakshasa Date: Thu, 24 Dec 2009 10:53:52 +0000 Subject: [PATCH] * Added a flag to torrent::Poll that lets us set which Poll objects should waive the global lock. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1118 e378c898-3ddf-0310-93e7-cc216c733640 --- src/thread_main.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/thread_main.cc b/src/thread_main.cc index ca3599cf..97ed84d5 100644 --- a/src/thread_main.cc +++ b/src/thread_main.cc @@ -50,6 +50,7 @@ ThreadMain::init_thread() { acquire_global_lock(); m_pollManager = core::PollManager::create_poll_manager(); + m_pollManager->get_torrent_poll()->set_flags(torrent::Poll::flag_waive_global_lock); m_state = STATE_INITIALIZED; }