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:
parent
d02ce1cf4d
commit
d19a69cd0d
5 changed files with 35 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue