Messages in this thread | | | From | Roland Dreier <> | Subject | Re: Suggested addition to epoll interface - epoll_post_notification() | Date | Tue, 15 Sep 2009 11:16:49 -0700 |
| |
> I have been playing with epoll lately and I would like to make a suggestion > regarding the epoll interface. > It would be nice to have a function to wake up a thread/process that is blocked > on an epoll_wait() call and sent it some > user defined data in the form of a struct epoll_event parameter ( something > similar with PostQueuedCompletionStatus() from Windows ).
You might have a look at eventfd() which creates an fd that can be used to signal from one thread to another (and which can be waited on with epoll).
- R.
| |