atomic.hpp: Fix atomic_storage_futex::raw_notify
This commit is contained in:
+3
-2
@@ -314,13 +314,14 @@ class named_thread final : public Context, result_storage_t<Context>, thread_bas
|
||||
return false;
|
||||
}
|
||||
|
||||
_this->m_state_notifier.release(data);
|
||||
|
||||
if (!data)
|
||||
{
|
||||
_this->m_state_notifier.release(data);
|
||||
return true;
|
||||
}
|
||||
|
||||
_this->m_state_notifier.store(data);
|
||||
|
||||
if (_this->m_state >= thread_state::aborting)
|
||||
{
|
||||
_this->m_state_notifier.release(nullptr);
|
||||
|
||||
Reference in New Issue
Block a user