Merge pull request #8460 from Morph1984/bounded-q
bounded_threadsafe_queue: Use constexpr capacity and mask
This commit is contained in:
commit
0ae4eae9a6
2 changed files with 74 additions and 87 deletions
|
@ -98,7 +98,7 @@ struct CommandDataContainer {
|
|||
struct SynchState final {
|
||||
using CommandQueue = Common::MPSCQueue<CommandDataContainer>;
|
||||
std::mutex write_lock;
|
||||
CommandQueue queue{512}; // size must be 2^n
|
||||
CommandQueue queue;
|
||||
u64 last_fence{};
|
||||
std::atomic<u64> signaled_fence{};
|
||||
std::condition_variable_any cv;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue