MCPcopy Create free account
hub / github.com/Tablecruncher/tablecruncher / shutdown

Method shutdown

external/httplib.h:777–790  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

775 }
776
777 void shutdown() override {
778 // Stop all worker threads...
779 {
780 std::unique_lock<std::mutex> lock(mutex_);
781 shutdown_ = true;
782 }
783
784 cond_.notify_all();
785
786 // Join...
787 for (auto &t : threads_) {
788 t.join();
789 }
790 }
791
792private:
793 struct worker {

Callers 1

httplib.hFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected