Exclusive thread possible fix for Linux

The deadlock is possibly caused by the thread not being joined, or because of an implementation difference with phtreads.

So this fix adds a call to release the background thread when terminating it and then also joins the thread to await for the completion of the background thread.

As before this works fine under Win32 (x64)
This commit is contained in:
Richard Harrison
2019-12-29 13:47:40 +01:00
parent 0cddb9e843
commit d93ce29b20

View File

@@ -495,6 +495,8 @@ SGExclusiveThread::SGExclusiveThread() :
void SGExclusiveThread::terminate() {
_terminated = true;
release();
join();
}
bool SGExclusiveThread::stop()
{