MCPcopy Create free account
hub / github.com/dmlc/parameter_server / ThreadPool

Method ThreadPool

src/util/threadpool.h:19–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17class ThreadPool {
18 public:
19 explicit ThreadPool(int num_workers)
20 : num_workers_(num_workers), final_barrier_(num_workers + 1) {}
21 ~ThreadPool();
22
23 typedef std::function<void()> Task;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected