1
0
mirror of https://github.com/wolfpld/tracy synced 2025-05-05 22:53:52 +00:00

Apply SPSCQueue commit 62cdc1f3.

This commit is contained in:
Bartosz Taudul 2022-03-18 02:05:55 +01:00
parent fdee87b0ae
commit c2fcc699be
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -112,7 +112,10 @@ public:
return static_cast<size_t>(diff); return static_cast<size_t>(diff);
} }
bool empty() const noexcept { return size() == 0; } bool empty() const noexcept {
return writeIdx_.load(std::memory_order_acquire) ==
readIdx_.load(std::memory_order_acquire);
}
size_t capacity() const noexcept { return capacity_ - 1; } size_t capacity() const noexcept { return capacity_ - 1; }