mirror of
https://github.com/boostorg/fiber.git
synced 2026-02-21 02:52:18 +00:00
release mutex before signal condition-variable
This commit is contained in:
@@ -36,6 +36,7 @@ barrier::wait() {
|
||||
if ( 0 == --current_) {
|
||||
cycle_ = ! cycle_;
|
||||
current_ = initial_;
|
||||
lk.unlock(); // no pessimization
|
||||
cond_.notify_all();
|
||||
return true;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user