MCPcopy Create free account
hub / github.com/PABannier/bark.cpp / enqueue

Method enqueue

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

Source from the content-addressed store, hash-verified

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

Callers 1

httplib.hFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected