MCPcopy Create free account
hub / github.com/MonaSolutions/MonaServer / PoolThreads

Method PoolThreads

MonaBase/include/Mona/PoolThreads.h:31–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29class PoolThreads : public virtual Object {
30public:
31 PoolThreads(UInt16 threadsAvailable=0) {
32 if (threadsAvailable == 0)
33 threadsAvailable = Util::ProcessorCount();
34 for(UInt16 i=0;i<threadsAvailable;++i) _threads.emplace_back(new PoolThread());
35 }
36 virtual ~PoolThreads() {
37 for(PoolThread* pThread : _threads) delete pThread;
38 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected