MCPcopy Create free account
hub / github.com/apple/foundationdb / addThread

Method addThread

flow/IThreadPool.cpp:109–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107 }
108 }
109 void addThread(IThreadPoolReceiver* userData, const char* name) override {
110 threads.push_back(new Thread(this, userData));
111 threads.back()->handle = g_network->startThread(start, threads.back(), stackSize, name);
112 }
113 void post(PThreadAction action) override { ios.post(ActionWrapper(action)); }
114 int priority() const { return pri; }
115};

Callers 3

openMethod · 0.45
initTLSMethod · 0.45

Calls 3

push_backMethod · 0.45
backMethod · 0.45
startThreadMethod · 0.45

Tested by

no test coverage detected