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

Method getAllLoops

muduo/net/EventLoopThreadPool.cc:85–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85std::vector<EventLoop*> EventLoopThreadPool::getAllLoops()
86{
87 baseLoop_->assertInLoopThread();
88 assert(started_);
89 if (loops_.empty())
90 {
91 return std::vector<EventLoop*>(1, baseLoop_);
92 }
93 else
94 {
95 return loops_;
96 }
97}

Callers

nothing calls this directly

Calls 2

assertInLoopThreadMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected