Skip to content

Commit 8029a5c

Browse files
committed
try to fix TSAN error about memory ordering
1 parent 434e917 commit 8029a5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/stdexec/__detail/__shared.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ namespace stdexec {
268268
}
269269

270270
void __detach() noexcept {
271-
if (__ref_count_.load(std::memory_order_acq_rel) < 4ul) {
271+
if (__ref_count_.load() < 4ul) {
272272
// We are the final "consumer", and we are about to release our reference
273273
// to the shared state. Ask the operation to stop early.
274274
__stop_source_.request_stop();

0 commit comments

Comments
 (0)