diff options
author | sapier <Sapier at GMX dot net> | 2013-12-01 01:52:06 +0100 |
---|---|---|
committer | sapier <Sapier at GMX dot net> | 2013-12-01 16:25:46 +0100 |
commit | 04e9a9d5410a151d232a577b46791d2edffba527 (patch) | |
tree | 26d014a8ba5a9d962f9458f11d23f11f09ab5fff /src/util | |
parent | f3439c40d85967c4f66eeefbc325f9ebf94d75e1 (diff) | |
download | minetest-04e9a9d5410a151d232a577b46791d2edffba527.tar.gz minetest-04e9a9d5410a151d232a577b46791d2edffba527.tar.bz2 minetest-04e9a9d5410a151d232a577b46791d2edffba527.zip |
Cleanup jthread and fix win32 build
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/container.h | 5 | ||||
-rw-r--r-- | src/util/thread.h | 2 |
2 files changed, 0 insertions, 7 deletions
diff --git a/src/util/container.h b/src/util/container.h index 89daa3fbc..fdd76cc59 100644 --- a/src/util/container.h +++ b/src/util/container.h @@ -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() { diff --git a/src/util/thread.h b/src/util/thread.h index 6258a09a1..3f5ef1199 100644 --- a/src/util/thread.h +++ b/src/util/thread.h @@ -32,7 +32,6 @@ public: MutexedVariable(T value): m_value(value) { - m_mutex.Init(); } T get() @@ -75,7 +74,6 @@ public: JThread(), run(true) { - run_mutex.Init(); } virtual ~SimpleThread() |