Skip to content

Commit 75c45fb

Browse files
authored
use atomics from stdexec::__std:: instead of std::
1 parent 1982e32 commit 75c45fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/stdexec/__detail/__when_all.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ namespace stdexec {
188188
void operator()() const noexcept {
189189
// Temporarily increment the count to avoid concurrent/recursive arrivals to
190190
// pull the rug under our feet. Relaxed memory order is fine here.
191-
__state_->__count_.fetch_add(1, std::memory_order_relaxed);
191+
__state_->__count_.fetch_add(1, __std::memory_order_relaxed);
192192

193193
__state_t __expected = __started;
194194
// Transition to the "stopped" state if and only if we're in the
@@ -214,7 +214,7 @@ namespace stdexec {
214214
>;
215215

216216
void __arrive(_Receiver& __rcvr) noexcept {
217-
if (1 == __count_.fetch_sub(1, std::memory_order_acq_rel)) {
217+
if (1 == __count_.fetch_sub(1, __std::memory_order_acq_rel)) {
218218
__complete(__rcvr);
219219
}
220220
}

0 commit comments

Comments
 (0)