aboutsummaryrefslogtreecommitdiff
path: root/src/jthread/pthread/jthread.cpp
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2013-12-01 01:52:06 +0100
committersapier <Sapier at GMX dot net>2013-12-01 16:25:46 +0100
commit04e9a9d5410a151d232a577b46791d2edffba527 (patch)
tree26d014a8ba5a9d962f9458f11d23f11f09ab5fff /src/jthread/pthread/jthread.cpp
parentf3439c40d85967c4f66eeefbc325f9ebf94d75e1 (diff)
downloadminetest-04e9a9d5410a151d232a577b46791d2edffba527.tar.gz
minetest-04e9a9d5410a151d232a577b46791d2edffba527.tar.bz2
minetest-04e9a9d5410a151d232a577b46791d2edffba527.zip
Cleanup jthread and fix win32 build
Diffstat (limited to 'src/jthread/pthread/jthread.cpp')
-rw-r--r--src/jthread/pthread/jthread.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/jthread/pthread/jthread.cpp b/src/jthread/pthread/jthread.cpp
index c4d9162c8..e7bf17612 100644
--- a/src/jthread/pthread/jthread.cpp
+++ b/src/jthread/pthread/jthread.cpp
@@ -33,7 +33,6 @@
JThread::JThread()
{
retval = NULL;
- mutexinit = false;
requeststop = false;
running = false;
}
@@ -53,26 +52,6 @@ int JThread::Start()
{
int status;
- if (!mutexinit)
- {
- if (!runningmutex.IsInitialized())
- {
- if (runningmutex.Init() < 0)
- return ERR_JTHREAD_CANTINITMUTEX;
- }
- if (!continuemutex.IsInitialized())
- {
- if (continuemutex.Init() < 0)
- return ERR_JTHREAD_CANTINITMUTEX;
- }
- if (!continuemutex2.IsInitialized())
- {
- if (continuemutex2.Init() < 0)
- return ERR_JTHREAD_CANTINITMUTEX;
- }
- mutexinit = true;
- }
-
runningmutex.Lock();
if (running)
{