MCPcopy Create free account
hub / github.com/dobin/RedEdr / ThreadPool

Method ThreadPool

RedEdr/httplib.h:673–679  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

671class ThreadPool final : public TaskQueue {
672public:
673 explicit ThreadPool(size_t n, size_t mqr = 0)
674 : shutdown_(false), max_queued_requests_(mqr) {
675 while (n) {
676 threads_.emplace_back(worker(*this));
677 n--;
678 }
679 }
680
681 ThreadPool(const ThreadPool &) = delete;
682 ~ThreadPool() override = default;

Callers

nothing calls this directly

Calls 1

workerClass · 0.85

Tested by

no test coverage detected