From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 25 08:58:38 2010 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 23572106568D; Mon, 25 Jan 2010 08:58:38 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (unknown [IPv6:2001:470:1f09:679::1]) by mx1.freebsd.org (Postfix) with ESMTP id E12CB8FC0C; Mon, 25 Jan 2010 08:58:37 +0000 (UTC) Received: from unknown (87-194-158-129.bethere.co.uk [87.194.158.129]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by muon.cran.org.uk (Postfix) with ESMTPSA id DE28D8311; Mon, 25 Jan 2010 08:58:53 +0000 (UTC) Date: Mon, 25 Jan 2010 08:58:38 +0000 From: Bruce Cran To: Ed Schouten Message-ID: <20100125085838.0000060d@unknown> In-Reply-To: <20100122151035.GX77705@hoeg.nl> References: <9bbcef731001220527u5bbec479n59143b6631c6e2d8@mail.gmail.com> <20100122151035.GX77705@hoeg.nl> X-Mailer: Claws Mail 3.7.2cvs27 (GTK+ 2.16.0; i586-pc-mingw32msvc) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Hackers , Ivan Voras , Randall Stewart Subject: Re: Greetings... a patch I would like your comments on... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jan 2010 08:58:38 -0000 On Fri, 22 Jan 2010 16:10:35 +0100 Ed Schouten wrote: > * Ivan Voras 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