mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Apply SPSCQueue commit 62cdc1f3.
This commit is contained in:
parent
fdee87b0ae
commit
c2fcc699be
@ -112,7 +112,10 @@ public:
|
||||
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; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user