Kernel events without kevents
Posted Mar 16, 2007 23:18 UTC (Fri) by
pphaneuf (guest, #23480)
In reply to:
Kernel events without kevents by mikov
Parent article:
Kernel events without kevents
Hmm, for some reason, I thought it was the number of signalled objects, like select() or poll()...
It's actually the index of the signalled object, as you say, and of the lowest one if there are more than one, which means it's even crummier than I thought (how bad can it be, with a limit of 64 objects?!?): you can easily starve the highest numbered objects like that.
While WaitForMultipleObjects() is pretty awful, it's true they have some other pretty nifty things, like the overlapped I/O and completion ports stuff. I also like what you can do with a WNDPROC on an hidden window, without the application knowing anything, as long as it pumps the message queue (which on Win32, you have to do anyway for your program to work). Too bad there's nothing like that on Unix.
Win32 didn't spring fully formed 14 years ago, by the way, I'd point at all the "Ex" and "Ex2" suffixes lying about as examples of added features, when it's not whole APIs.
(
Log in to post comments)