mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-05 19:31:04 +00:00
Fix broken async locking in release build
This commit is contained in:
parent
6cbd1b8bf7
commit
5004f31575
7 changed files with 102 additions and 42 deletions
|
@ -50,6 +50,13 @@ public:
|
|||
bool StopRequested();
|
||||
void *GetReturnValue();
|
||||
bool IsSameThread();
|
||||
|
||||
/*
|
||||
* Wait for thread to finish
|
||||
* Note: this does not stop a thread you have to do this on your own
|
||||
* WARNING: never ever call this on a thread not started or already killed!
|
||||
*/
|
||||
void Wait();
|
||||
protected:
|
||||
void ThreadStarted();
|
||||
private:
|
||||
|
@ -67,6 +74,8 @@ private:
|
|||
static void *TheThread(void *param);
|
||||
|
||||
pthread_t threadid;
|
||||
|
||||
bool started;
|
||||
#endif // WIN32
|
||||
void *retval;
|
||||
bool running;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue