MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/xstudio / enqueue

Method enqueue

extern/include/cpp-httplib/httplib.h:551–558  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

httplib.hFile · 0.80

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected