MCPcopy Create free account
hub / github.com/DiscordMessenger/dm / enqueue

Method enqueue

deps/httplib/httplib.h:669–676  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

667 ~ThreadPool() override = default;
668
669 void enqueue(std::function<void()> fn) override {
670 {
671 L_unique_lock<L_mutex> lock(mutex_);
672 jobs_.push_back(std::move(fn));
673 }
674
675 cond_.notify_one();
676 }
677
678 void shutdown() override {
679 // Stop all worker threads...

Callers 1

httplib.hFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected