MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / ~PinnedThreadPool

Method ~PinnedThreadPool

csrc/adam/cpu_adam_impl.cpp:405–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403 }
404
405 ~PinnedThreadPool()
406 {
407 {
408 std::lock_guard<std::mutex> lk(m_);
409 stop_ = true;
410 ++gen_;
411 }
412 cv_start_.notify_all();
413 for (auto& t : threads_) t.join();
414 }
415
416 size_t size() const { return n_; }
417

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected