From 154920d0fee64db0b9a41e0880571f7c9b46d52a Mon Sep 17 00:00:00 2001 From: zhengshuxin Date: Mon, 12 Jun 2023 18:27:07 +0800 Subject: [PATCH] Add size() for fiber_sbox class. --- lib_fiber/cpp/include/fiber/fiber_sem.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib_fiber/cpp/include/fiber/fiber_sem.hpp b/lib_fiber/cpp/include/fiber/fiber_sem.hpp index 87c29169b..e42669ad9 100644 --- a/lib_fiber/cpp/include/fiber/fiber_sem.hpp +++ b/lib_fiber/cpp/include/fiber/fiber_sem.hpp @@ -76,6 +76,10 @@ public: return t; } + size_t size(void) const { + return sem_.num(); + } + private: fiber_sem sem_; std::list sbox_;