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

Method ~PinnedThreadPool

csrc/adam/cpu_adam_impl.cpp:541–550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

539 }
540
541 ~PinnedThreadPool()
542 {
543 {
544 std::lock_guard<std::mutex> lk(m_);
545 stop_ = true;
546 ++gen_;
547 }
548 cv_start_.notify_all();
549 for (auto& t : threads_) t.join();
550 }
551
552 size_t size() const { return n_; }
553

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected