Cleanup jthread and fix win32 build

This commit is contained in:
sapier
2013-12-01 01:52:06 +01:00
parent f3439c40d8
commit 04e9a9d541
29 changed files with 185 additions and 194 deletions

View File

@@ -83,8 +83,6 @@ class MutexedMap
public:
MutexedMap()
{
m_mutex.Init();
assert(m_mutex.IsInitialized());
}
void set(const Key &name, const Value &value)
@@ -150,8 +148,6 @@ class MutexedIdGenerator
public:
MutexedIdGenerator()
{
m_mutex.Init();
assert(m_mutex.IsInitialized());
}
// Returns true if found
@@ -253,7 +249,6 @@ class MutexedQueue
public:
MutexedQueue()
{
m_mutex.Init();
}
bool empty()
{

View File

@@ -32,7 +32,6 @@ class MutexedVariable
MutexedVariable(T value):
m_value(value)
{
m_mutex.Init();
}
T get()
@@ -75,7 +74,6 @@ class SimpleThread : public JThread
JThread(),
run(true)
{
run_mutex.Init();
}
virtual ~SimpleThread()