Is there a Windows equivalent for eventfd?

Posted by Leaurus on Stack Overflow See other posts from Stack Overflow or by Leaurus
Published on 2012-12-19T17:02:29Z Indexed on 2012/12/19 17:02 UTC
Read the original article Hit count: 1262

Filed under:
|
|
|

I am writing a cross-platform library which emulates sockets behaviour, having additional functionality in the between (App->mylib->sockets).

I want it to be the most transparent possible for the programmer, so primitives like select and poll must work with accordingly with this lib.

The problem is when data becomes available (for instance) in the real socket, it will have to go through a lot of processing, so if select points to the real socket fd, app will be blocked a lot of time. I want the select/poll to unblock only when data is ready to be consumed (after my lib has done all the processing).

So I came across this eventfd which allows me to do exactly what I want, i.e. to manipule select/poll behaviour on a given fd.

Since I am much more familiarized with Linux environment, I don't know what is the windows equivalent of eventfd. Tried to search but got no luck.

Anyone can help me, please?

© Stack Overflow or respective owner

Related posts about Windows

Related posts about events