Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gavinlilly
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
gavinlilly
12d ago
If contention is expected, would it be better to first perform a relaxed read before the exchange? For example: auto lock() noexcept -> void { auto backoff = 1; do { while (locked_.load(std::memory_order_relaxed