summaryrefslogtreecommitdiff
path: root/src/KingSystem/Utils/Container/LockFreeQueue.h
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2022-01-17 01:41:49 +0100
committerLéo Lam <leo@leolam.fr>2022-01-17 01:52:21 +0100
commit05abdf7e77c553f95e61dba8d2b395014711ec12 (patch)
treeffe91b2f5a82637c45daf4c8b85f382dff944136 /src/KingSystem/Utils/Container/LockFreeQueue.h
parent4eb07ca88c2bd9c0c7594028e0149e825f675649 (diff)
ksys/phys: Add easy RigidBodyRequestMgr functions
Diffstat (limited to 'src/KingSystem/Utils/Container/LockFreeQueue.h')
-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.