Skip to content

Commit e01f50b

Browse files
committed
ThreadSafePool::size()
1 parent ea698ab commit e01f50b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

util/thread_safe_pool.hh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ private:
1414
std::array<std::atomic<bool>, MaxEntries> used_flags;
1515

1616
public:
17+
constexpr size_t size() const {
18+
return MaxEntries;
19+
}
20+
1721
ThreadSafePool() = default;
1822

1923
// Returns index of first available entry

0 commit comments

Comments
 (0)