MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / enqueue

Method enqueue

dependencies/httplib/httplib.h:546–550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

httplib.hFile · 0.80

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected