void EventLoop::queueInLoop(Task& task) { { MutexLockGuard guard(_mutex); _pendingFunctors.push_back(task); } if(!isInLoopThread() || _callingPendingFunctors) { wakeup(); } }
Activity
spobit commentedon Nov 8, 2018
希望给点指导,谢谢老哥
none-happy commentedon Sep 5, 2020
感觉这里确实有问题
int fds = ::epoll_wait(_epollfd, _events, MAX_EVENTS, -1);
timeout=-1,此时epoll_wait是由外部触发的