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

Method enqueue

examples/server/httplib.h:594–601  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

592 ~ThreadPool() override = default;
593
594 void enqueue(std::function<void()> fn) override {
595 {
596 std::unique_lock<std::mutex> lock(mutex_);
597 jobs_.push_back(std::move(fn));
598 }
599
600 cond_.notify_one();
601 }
602
603 void shutdown() override {
604 // Stop all worker threads...

Callers 1

httplib.hFile · 0.45

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected