Skip to content

这里有可能没有唤醒,如果epoll_wait也没有唤醒,那么... #2

Description

@spobit

void EventLoop::queueInLoop(Task& task)
{
{
MutexLockGuard guard(_mutex);
_pendingFunctors.push_back(task);
}

if(!isInLoopThread() || _callingPendingFunctors)
{
    wakeup();
}

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions