summaryrefslogtreecommitdiff
path: root/src/KingSystem/Utils/Container
diff options
context:
space:
mode:
Diffstat (limited to 'src/KingSystem/Utils/Container')
-rw-r--r--src/KingSystem/Utils/Container/LockFreeQueue.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/KingSystem/Utils/Container/LockFreeQueue.h b/src/KingSystem/Utils/Container/LockFreeQueue.h
index 8f9be9b7..1f6d5817 100644
--- a/src/KingSystem/Utils/Container/LockFreeQueue.h
+++ b/src/KingSystem/Utils/Container/LockFreeQueue.h
@@ -29,6 +29,7 @@ public:
void freeBuffer() { mBuffer.freeBuffer(); }
+ int getSize() const { return mWriteIdx - mReadIdx; }
int getCapacity() const { return mBuffer.size(); }
/// Pop an element from the front of the queue. Non-blocking.