MCPcopy Create free account
hub / github.com/chrxh/alien / ThreadPool

Method ThreadPool

external/cpp-httplib/httplib.h:540–545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

538 class ThreadPool : public TaskQueue {
539 public:
540 explicit ThreadPool(size_t n) : shutdown_(false) {
541 while (n) {
542 threads_.emplace_back(worker(*this));
543 n--;
544 }
545 }
546
547 ThreadPool(const ThreadPool&) = delete;
548 ~ThreadPool() override = default;

Callers

nothing calls this directly

Calls 1

workerClass · 0.85

Tested by

no test coverage detected