MCPcopy Create free account
hub / github.com/aixed/WeChat-Hook / ThreadPool

Method ThreadPool

include/httplib.h:591–596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

589class ThreadPool : public TaskQueue {
590public:
591 explicit ThreadPool(size_t n) : shutdown_(false) {
592 while (n) {
593 threads_.emplace_back(worker(*this));
594 n--;
595 }
596 }
597
598 ThreadPool(const ThreadPool &) = delete;
599 ~ThreadPool() override = default;

Callers

nothing calls this directly

Calls 1

workerClass · 0.70

Tested by

no test coverage detected