MCPcopy Create free account
hub / github.com/ml-explore/mlx-data / ~ThreadPool

Method ~ThreadPool

mlx/data/core/ThreadPool.cpp:53–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53ThreadPool::~ThreadPool() {
54 stop_threads_ = true;
55 task_cv_.notify_all();
56
57 for (std::thread& thread : threads_) {
58 thread.join();
59 }
60}
61} // namespace core
62} // namespace data
63} // namespace mlx

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected