mirror of
https://github.com/boostorg/fiber.git
synced 2026-02-17 01:32:32 +00:00
fix memory ordering for release-op (spinlock/mutex/recursive_mutex)
This commit is contained in:
@@ -115,7 +115,7 @@ recursive_mutex::unlock() {
|
||||
}
|
||||
lk.unlock();
|
||||
owner_ = nullptr;
|
||||
state_ = mutex_status::unlocked;
|
||||
state_.store( mutex_status::unlocked, std::memory_order_release);
|
||||
|
||||
if ( nullptr != ctx) {
|
||||
context::active()->set_ready( ctx);
|
||||
|
||||
Reference in New Issue
Block a user