Change the number of threads. Current threads will be joined.
| 118 | |
| 119 | // Change the number of threads. Current threads will be joined. |
| 120 | PDAL_EXPORT void resize(const std::size_t numThreads) |
| 121 | { |
| 122 | join(); |
| 123 | m_numThreads = numThreads; |
| 124 | go(); |
| 125 | } |
| 126 | |
| 127 | // Add a threaded task, blocking until a thread is available. If join() is |
| 128 | // called, add() may not be called again until go() is called and completes. |