MCPcopy Create free account
hub / github.com/PDAL/PDAL / resize

Function resize

pdal/util/ThreadPool.hpp:120–125  ·  view source on GitHub ↗

Change the number of threads. Current threads will be joined.

Source from the content-addressed store, hash-verified

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.

Callers 1

AttributeBufferMethod · 0.50

Calls 1

joinFunction · 0.85

Tested by

no test coverage detected