Browse Source
This allows to wakeup the thread that is sleeping on Poller::poll() [ which in our case is an epoll_wait() call ]. This is usually achieved by using a special signal and using the pwait() variant of the sleeping function (or using signalfd). However integrating the signal in the Thread class is more complex than simply use the eventfd syscall which can serve our needs.master
2 changed files with 66 additions and 0 deletions
Loading…
Reference in new issue