We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
async_scope
1 parent 250f357 commit f7b4b47Copy full SHA for f7b4b47
include/exec/async_scope.hpp
@@ -159,8 +159,8 @@ namespace exec {
159
160
static void __complete(const __impl* __scope) noexcept {
161
auto& __active = __scope->__active_;
162
+ std::unique_lock __guard{__scope->__lock_};
163
if (__active.fetch_sub(1, __std::memory_order_acq_rel) == 1) {
- std::unique_lock __guard{__scope->__lock_};
164
auto __local_waiters = std::move(__scope->__waiters_);
165
__guard.unlock();
166
__scope = nullptr;
0 commit comments