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

Method queueInLoop

muduo/net/EventLoop.cc:160–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160void EventLoop::queueInLoop(Functor cb)
161{
162 {
163 MutexLockGuard lock(mutex_);
164 pendingFunctors_.push_back(std::move(cb));
165 }
166
167 if (!isInLoopThread() || callingPendingFunctors_)
168 {
169 wakeup();
170 }
171}
172
173size_t EventLoop::queueSize() const
174{

Callers 15

removeChannelMethod · 0.80
stopMethod · 0.80
removeAndResetChannelMethod · 0.80
sendInLoopMethod · 0.80
forceCloseMethod · 0.80
handleWriteMethod · 0.80
removeConnectionFunction · 0.80
removeConnectionMethod · 0.80
onStringMessageMethod · 0.80
onStringMessageMethod · 0.80
onConnectionMethod · 0.80

Calls

no outgoing calls

Tested by 1

onStringMessageMethod · 0.64