diff options
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/pool.hh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libutil/pool.hh b/src/libutil/pool.hh index f291cd578388..3c3dd4b074f3 100644 --- a/src/libutil/pool.hh +++ b/src/libutil/pool.hh @@ -141,11 +141,16 @@ public: } } - unsigned int count() + size_t count() { auto state_(state.lock()); return state_->idle.size() + state_->inUse; } + + size_t capacity() + { + return state.lock()->max; + } }; } |