1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-05 19:31:04 +00:00

Fix broken thread stop handling

This commit is contained in:
sapier 2013-11-30 01:51:54 +01:00
parent d02ce1cf4d
commit d19a69cd0d
5 changed files with 35 additions and 6 deletions

View file

@ -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;