MCPcopy Create free account
hub / github.com/chenshuo/muduo / setThreadInitCallback

Method setThreadInitCallback

muduo/base/ThreadPool.h:30–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28 // Must be called before start().
29 void setMaxQueueSize(int maxSize) { maxQueueSize_ = maxSize; }
30 void setThreadInitCallback(const Task& cb)
31 { threadInitCallback_ = cb; }
32
33 void start(int numThreads);
34 void stop();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected