.
This commit is contained in:
@@ -13,11 +13,11 @@ class SpscQueue{
|
||||
SpscQueue(){
|
||||
head.store(0, std::memory_order_relaxed);
|
||||
tail.store(0, std::memory_order_relaxed);
|
||||
buffer.fill(Command::None);
|
||||
buffer.fill({CommandType::None, 0, 0});
|
||||
}
|
||||
|
||||
bool push(Command command);
|
||||
bool pop(Command& command);
|
||||
bool push(const Command&);
|
||||
bool pop(Command&);
|
||||
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user