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

Method EventLoopThread

muduo/net/EventLoopThread.cc:16–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14using namespace muduo::net;
15
16EventLoopThread::EventLoopThread(const ThreadInitCallback& cb,
17 const string& name)
18 : loop_(NULL),
19 exiting_(false),
20 thread_(std::bind(&EventLoopThread::threadFunc, this), name),
21 mutex_(),
22 cond_(mutex_),
23 callback_(cb)
24{
25}
26
27EventLoopThread::~EventLoopThread()
28{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected