MCPcopy Create free account
hub / github.com/PABannier/bark.cpp / ThreadPool

Method ThreadPool

examples/server/httplib.h:593–598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

workerClass · 0.85

Tested by

no test coverage detected