We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea698ab commit e01f50bCopy full SHA for e01f50b
1 file changed
util/thread_safe_pool.hh
@@ -14,6 +14,10 @@ private:
14
std::array<std::atomic<bool>, MaxEntries> used_flags;
15
16
public:
17
+ constexpr size_t size() const {
18
+ return MaxEntries;
19
+ }
20
+
21
ThreadSafePool() = default;
22
23
// Returns index of first available entry
0 commit comments