Message ID | YEpZPJVNo/fPtDbW@redhat.com |
---|---|
State | New |
Headers | show |
Series | [committed] libstdc++: Use acq_rel memory ordering [PR 99537] | expand |
diff --git a/libstdc++-v3/include/std/stop_token b/libstdc++-v3/include/std/stop_token index 83905f6525f..fffc215d2a8 100644 --- a/libstdc++-v3/include/std/stop_token +++ b/libstdc++-v3/include/std/stop_token @@ -185,7 +185,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION void _M_release_ownership() noexcept { - if (_M_owners.fetch_sub(1, memory_order::release) == 1) + if (_M_owners.fetch_sub(1, memory_order::acq_rel) == 1) delete this; }