MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / shutdown

Method shutdown

examples/server/httplib.h:603–616  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

601 }
602
603 void shutdown() override {
604 // Stop all worker threads...
605 {
606 std::unique_lock<std::mutex> lock(mutex_);
607 shutdown_ = true;
608 }
609
610 cond_.notify_all();
611
612 // Join...
613 for (auto &t : threads_) {
614 t.join();
615 }
616 }
617
618private:
619 struct worker {

Callers 1

httplib.hFile · 0.80

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected