MCPcopy Create free account
hub / github.com/XTXMarkets/ternfs / enqueue

Method enqueue

cpp/core/httplib.h:607–614  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

605 ~ThreadPool() override = default;
606
607 void enqueue(std::function<void()> fn) override {
608 {
609 std::unique_lock<std::mutex> lock(mutex_);
610 jobs_.push_back(std::move(fn));
611 }
612
613 cond_.notify_one();
614 }
615
616 void shutdown() override {
617 // Stop all worker threads...

Callers 1

httplib.hFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected