aboutsummaryrefslogtreecommitdiff
path: root/src/jthread/jthread.h
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2013-11-30 01:51:54 +0100
committersapier <Sapier at GMX dot net>2013-11-30 02:15:31 +0100
commitd19a69cd0d22dfbe802286baf8b33ebb8c6f4fa2 (patch)
tree813d0cf5a003d6b9e7966c20878a2b131299564d /src/jthread/jthread.h
parentd02ce1cf4d5d283cc6045771612e5b351740e07e (diff)
downloadminetest-d19a69cd0d22dfbe802286baf8b33ebb8c6f4fa2.tar.gz
minetest-d19a69cd0d22dfbe802286baf8b33ebb8c6f4fa2.tar.bz2
minetest-d19a69cd0d22dfbe802286baf8b33ebb8c6f4fa2.zip
Fix broken thread stop handling
Diffstat (limited to 'src/jthread/jthread.h')
-rw-r--r--src/jthread/jthread.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/jthread/jthread.h b/src/jthread/jthread.h
index 92b05f1c5..867701c75 100644
--- a/src/jthread/jthread.h
+++ b/src/jthread/jthread.h
@@ -47,6 +47,7 @@ public:
int Kill();
virtual void *Thread() = 0;
bool IsRunning();
+ bool StopRequested();
void *GetReturnValue();
bool IsSameThread();
protected:
@@ -69,6 +70,7 @@ private:
#endif // WIN32
void *retval;
bool running;
+ bool requeststop;
JMutex runningmutex;
JMutex continuemutex,continuemutex2;