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:
parent
fdee87b0ae
commit
c2fcc699be
@ -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; }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user