MCPcopy Create free account
hub / github.com/EricPengShuai/Interview / runInThread

Method runInThread

practice/threadpool.cpp:55–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 vector<thread> _handler;
54
55 void runInThread(int id)
56 {
57 std::this_thread::sleep_for(std::chrono::seconds(1));
58 cout << "call runInThread! id:" << id << endl;
59 }
60};
61
62int main()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected