Add size() for fiber_sbox class.

This commit is contained in:
zhengshuxin 2023-06-12 18:27:07 +08:00
parent 52a3da825c
commit 154920d0fe

View File

@ -76,6 +76,10 @@ public:
return t;
}
size_t size(void) const {
return sem_.num();
}
private:
fiber_sem sem_;
std::list<T*> sbox_;