2
0
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:
Oliver Kowalke
2015-09-19 17:37:42 +02:00
parent e6ddbe10a1
commit 1797badafc
3 changed files with 3 additions and 3 deletions

View File

@@ -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);