_dbus_write/read/poll etc and regular files

Rob Taylor robtaylor@fastmail.fm
Tue Jan 18 02:21:52 PST 2005


On Mon, 2005-01-17 at 21:45 +0000, Tor Lillqvist wrote:
> Rob Taylor writes:
>  > Out of interest, in what problematic way is WaitForMultipleObjects not
>  > select-like?
> It's possible to open a file for "overlapped IO". Then you must use
> only asynchronous overlapped IO to/from it. Each ReadFile or WriteFile
> call passes an OVERLAPPED struct, which contains an optional HEVENT
> (Event handle), and this Event is signalled when the IO
> *completes*. I.e. not when IO *is possible* (which would be more like
> select()). So it is quite different from select(). With select() you
> wait until I/O is possible, and then do it. With overlapped I/O you
> start the I/O asynchronously, and do something else or wait until it
> is done.

Thanks for the explanation, this is the part i'd forgotten about :) 
I've just seen the news today - well done! this is great news for
everyone interested in transitioning desktops.

Thanks,
Rob Taylor



More information about the dbus mailing list