* Properly set ThreadMain::m_thread to pthread_self().

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1185 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2010-11-06 11:58:47 +00:00
parent 51db5e64c2
commit 4013fd6b98
3 changed files with 3 additions and 1 deletions
+1
View File
@@ -112,6 +112,7 @@ ThreadBase::ThreadBase() :
// Init the poll manager in a special init function called by the
// thread itself. Need to be careful with what external stuff
// create_poll_manager calls in that case.
std::memset(&m_thread, 0, sizeof(pthread_t));
m_taskShutdown.set_slot(rak::ptr_fn(&throw_shutdown_exception));