MCPcopy Create free account
hub / github.com/chrxh/alien / enqueue

Method enqueue

external/cpp-httplib/httplib.h:550–554  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

548 ~ThreadPool() override = default;
549
550 void enqueue(std::function<void()> fn) override {
551 std::unique_lock<std::mutex> lock(mutex_);
552 jobs_.push_back(std::move(fn));
553 cond_.notify_one();
554 }
555
556 void shutdown() override {
557 // Stop all worker threads...

Callers 1

httplib.hFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected