Skip to content

Commit 4be4658

Browse files
committed
Use std::memory_order_release for arraymap head.
1 parent 95c58f9 commit 4be4658

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/bitcoin/database/impl/primitives/arrayhead.ipp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ bool CLASS::push(const Link& link, const Link& index) NOEXCEPT
167167
// xcode clang++16 does not support C++20 std::atomic_ref.
168168
////const std::atomic_ref<integer> head(unsafe_byte_cast<integer>(raw));
169169
auto& head = *pointer_cast<std::atomic<integer>>(raw);
170-
head.store(link, std::memory_order_acq_rel);
170+
head.store(link, std::memory_order_release);
171171
}
172172
else
173173
{

0 commit comments

Comments
 (0)