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

Method Thread

muduo/base/Thread.cc:142–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140AtomicInt32 Thread::numCreated_;
141
142Thread::Thread(ThreadFunc func, const string& n)
143 : started_(false),
144 joined_(false),
145 pthreadId_(0),
146 tid_(0),
147 func_(std::move(func)),
148 name_(n),
149 latch_(1)
150{
151 setDefaultName();
152}
153
154Thread::~Thread()
155{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected