2
0
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:
Oliver Kowalke
2015-09-05 10:36:57 +02:00
parent 983f2efb43
commit 4187c68f4e
4 changed files with 84 additions and 66 deletions

View File

@@ -36,6 +36,7 @@ barrier::wait() {
if ( 0 == --current_) {
cycle_ = ! cycle_;
current_ = initial_;
lk.unlock(); // no pessimization
cond_.notify_all();
return true;
} else {