Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/EricPengShuai/Interview
/ Thread
Method
Thread
practice/threadpool.cpp:12–12 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
10
public:
11
using PFUNC = function<void(int)>;
12
Thread(PFUNC pfunc, int id) : _pfunc(pfunc), _no(id) {}
13
14
thread start() {
15
thread t(_pfunc, _no);
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected