Greetings... a patch I would like your comments on...

Bruce Cran bruce at cran.org.uk
Mon Jan 25 08:58:38 UTC 2010


On Fri, 22 Jan 2010 16:10:35 +0100
Ed Schouten <ed at 80386.nl> wrote:

> * Ivan Voras <ivoras at freebsd.org> wrote:
> > This is a good and useful addition! I think Windows has implemented
> > a generalization of this (called "wait objects" or something like
> > that), which effectively allows a select()- (or in this case
> > kqueue())-like syscall to wait on both file descriptors and
> > condvars (as well as probably other MS-style objects). It's useful
> > for multiplexing events for dissimilar sources.
> 
> NtWaitForSingleObject(), NtWaitForMultipleObjects(), etc. :-)

Just to avoid any possible confusion, Microsoft have stopped
documenting the Nt* functions, or have marked them as obsolete: in
userland you call WaitForSingleObject, WaitForMultipleObjects
etc. while in the kernel you use KeWaitForSingleObject,
KeWaitForMutlipleObjects etc.

-- 
Bruce Cran


More information about the freebsd-hackers mailing list