Fix broken async locking in release build
This commit is contained in:
@@ -50,6 +50,13 @@ class JThread
|
||||
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 @@ class JThread
|
||||
static void *TheThread(void *param);
|
||||
|
||||
pthread_t threadid;
|
||||
|
||||
bool started;
|
||||
#endif // WIN32
|
||||
void *retval;
|
||||
bool running;
|
||||
|
||||
Reference in New Issue
Block a user