| 24 | void revertLast() { nextPosToWrite.fetch_sub(1, std::memory_order_relaxed); } |
| 25 | |
| 26 | bool hasSpace() const { |
| 27 | return nextPosToWrite.load(std::memory_order_relaxed) < |
| 28 | maxElements.load(std::memory_order_relaxed); |
| 29 | } |
| 30 | |
| 31 | private: |
| 32 | T* getData() const { return reinterpret_cast<T*>(block->getData()); } |
no test coverage detected