| 29 | class PoolThreads : public virtual Object { |
| 30 | public: |
| 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected