MCPcopy Create free account
hub / github.com/apache/arrow / CollectFinishedWorkersUnlocked

Method CollectFinishedWorkersUnlocked

cpp/src/arrow/util/thread_pool.cc:627–633  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

625}
626
627void ThreadPool::CollectFinishedWorkersUnlocked() {
628 for (auto& thread : state_->finished_workers_) {
629 // Make sure OS thread has exited
630 thread.join();
631 }
632 state_->finished_workers_.clear();
633}
634
635// MinGW's __emutls implementation for C++ thread_local has known race conditions
636// during thread creation. When a new worker thread is spawned and immediately

Callers

nothing calls this directly

Calls 2

joinMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected