MCPcopy Create free account
hub / github.com/Tablecruncher/tablecruncher / ThreadPool

Method ThreadPool

external/httplib.h:753–759  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

751class ThreadPool final : public TaskQueue {
752public:
753 explicit ThreadPool(size_t n, size_t mqr = 0)
754 : shutdown_(false), max_queued_requests_(mqr) {
755 while (n) {
756 threads_.emplace_back(worker(*this));
757 n--;
758 }
759 }
760
761 ThreadPool(const ThreadPool &) = delete;
762 ~ThreadPool() override = default;

Callers

nothing calls this directly

Calls 1

workerClass · 0.85

Tested by

no test coverage detected