[*] Found another race condition
This commit is contained in:
parent
ba9ddded75
commit
9d71b5c04f
@ -1103,17 +1103,17 @@ namespace Aurora::Threading::Threads
|
||||
|
||||
HookReleaseThreadResources();
|
||||
|
||||
if (this->terminated_)
|
||||
{
|
||||
this->exitOnlyOnce_->Unlock();
|
||||
this->terminated_->Set();
|
||||
}
|
||||
|
||||
if (this->terminatedSignalLs_)
|
||||
{
|
||||
this->terminatedSignalLs_->Set();
|
||||
}
|
||||
|
||||
if (this->terminated_)
|
||||
{
|
||||
this->exitOnlyOnce_->Unlock();
|
||||
this->terminated_->Set(); // must be set last, after which point we cannot use this!
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user