| 109 | } |
| 110 | |
| 111 | void ThreadPool::createThreads (int numThreads, size_t threadStackSize) |
| 112 | { |
| 113 | for (int i = jmax (1, numThreads); --i >= 0;) |
| 114 | threads.add (new ThreadPoolThread (*this, threadStackSize)); |
| 115 | |
| 116 | for (auto* t : threads) |
| 117 | t->startThread(); |
| 118 | } |
| 119 | |
| 120 | void ThreadPool::stopThreads() |
| 121 | { |
nothing calls this directly
no test coverage detected