From 05abdf7e77c553f95e61dba8d2b395014711ec12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Mon, 17 Jan 2022 01:41:49 +0100 Subject: ksys/phys: Add easy RigidBodyRequestMgr functions --- src/KingSystem/Utils/Container/LockFreeQueue.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/KingSystem/Utils') 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. -- cgit v1.2.3