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

Function join

pdal/util/ThreadPool.hpp:75–86  ·  view source on GitHub ↗

Disallow the addition of new tasks and wait for all currently running tasks to complete.

Source from the content-addressed store, hash-verified

73 // Disallow the addition of new tasks and wait for all currently running
74 // tasks to complete.
75 PDAL_EXPORT void join()
76 {
77 std::unique_lock<std::mutex> lock(m_mutex);
78 if (!m_running) return;
79 m_running = false;
80 lock.unlock();
81
82 m_consumeCv.notify_all();
83 for (auto& t : m_threads)
84 t.join();
85 m_threads.clear();
86 }
87
88 // join() and empty the queue of tasks that may have been waiting to run.
89 PDAL_EXPORT void stop()

Callers 6

getPointlessLasFileFunction · 0.85
tempFilenameFunction · 0.85
PDAL_EXPORT ~ThreadPoolFunction · 0.85
stopFunction · 0.85
cycleFunction · 0.85
resizeFunction · 0.85

Calls 2

unlockMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected