Skip to content

Commit ff66522

Browse files
committed
ThreadSafePool: fix wrong memory model
1 parent e01f50b commit ff66522

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/thread_safe_pool.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public:
4747
void clear() {
4848
for (size_t i = 0; i < MaxEntries; i++) {
4949
data[i] = T{};
50-
used_flags[i].store(false, std::memory_order_acquire);
50+
used_flags[i].store(false, std::memory_order_release);
5151
}
5252
}
5353

0 commit comments

Comments
 (0)