| 51 | } |
| 52 | |
| 53 | ThreadPool::~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 |
nothing calls this directly
no outgoing calls
no test coverage detected