Current scenario is epoll_wait over a couple of fds and a queue of possible incoming messages, I\'d like the loop below epoll_wait to be executed on IO event or on new messa
You can use an eventfd which is effectively the same thing as the self-pipe trick except with fewer file descriptors and less boilerplate (glibc has convenience eventfd_read/write functions for instance).