There was an error while loading. Please reload this page.
2 parents e9a883c + 1dd2a87 commit 0b0ffe0Copy full SHA for 0b0ffe0
1 file changed
libcuckoo/cuckoohash_map.hh
@@ -834,14 +834,14 @@ private:
834
}
835
836
void lock() noexcept {
837
- while (lock_.test_and_set(std::memory_order_acq_rel))
+ while (lock_.test_and_set(std::memory_order_acquire))
838
;
839
840
841
void unlock() noexcept { lock_.clear(std::memory_order_release); }
842
843
bool try_lock() noexcept {
844
- return !lock_.test_and_set(std::memory_order_acq_rel);
+ return !lock_.test_and_set(std::memory_order_acquire);
845
846
847
counter_type &elem_counter() noexcept { return elem_counter_; }
0 commit comments