* Finished the foundation of threading.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1114 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2009-12-15 21:39:35 +00:00
parent 6a94909647
commit 2304983f4f
6 changed files with 15 additions and 53 deletions
-6
View File
@@ -45,11 +45,6 @@
#include "globals.h"
// A preliminary implementation of a global lock, to be moved
// somewhere more appropriate when it's put to use.
ThreadBase::global_lock_type ThreadBase::m_global = { 0, PTHREAD_MUTEX_INITIALIZER };
// Temporarly injected into config.h.
/* temp hack */
//#define __cacheline_aligned __attribute__((__aligned__(128)))
@@ -115,7 +110,6 @@ ThreadBase::ThreadBase() :
}
ThreadBase::~ThreadBase() {
pthread_mutex_destroy(&ThreadBase::m_global.lock);
}
void