This commit is contained in:
2026-11-13 23:59:25 +06:00
parent 7d60addcd9
commit 5731475015
6 changed files with 126 additions and 97 deletions
+3 -3
View File
@@ -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: