mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-11-30 02:47:56 +08:00
Add size() for fiber_sbox class.
This commit is contained in:
parent
52a3da825c
commit
154920d0fe
@ -76,6 +76,10 @@ public:
|
||||
return t;
|
||||
}
|
||||
|
||||
size_t size(void) const {
|
||||
return sem_.num();
|
||||
}
|
||||
|
||||
private:
|
||||
fiber_sem sem_;
|
||||
std::list<T*> sbox_;
|
||||
|
Loading…
Reference in New Issue
Block a user