Date: Tue, 28 Jul 2015 10:33:18 -0700 From: Adrian Chadd <adrian.chadd@gmail.com> To: David Chisnall <theraven@freebsd.org> Cc: Luigi Rizzo <rizzo@iet.unipi.it>, freebsd-current <freebsd-current@freebsd.org> Subject: Re: eventfd lookalike in FreeBSD ? Message-ID: <CAJ-VmokaoTKb05BBaNXpbqHTnSjn5QvXsfGAY7Y%2BcdjJPPSvUA@mail.gmail.com> In-Reply-To: <74DCC090-6AA7-43B8-81A1-DF66BC357489@FreeBSD.org> References: <20150728121949.GA64588@onelab2.iet.unipi.it> <CAJ-VmoniGM2wv01zn_%2B%2BF-fLOq4mZ5FFTZRX_dYLww51Aq-iJQ@mail.gmail.com> <74DCC090-6AA7-43B8-81A1-DF66BC357489@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 28 July 2015 at 10:31, David Chisnall <theraven@freebsd.org> wrote: > On 28 Jul 2015, at 18:23, Adrian Chadd <adrian.chadd@gmail.com> wrote: >> >> (What would be nice is having kqueue know about conditionals, so we >> can sleep on a cond as well as a kqueue fd+queue, but I can't have >> everything I want..) > > I recently came across a need to do something like this. Being able to a= dd condvar / mutex pairs to a kqueue and wait on a set of condition variabl= es, reacquiring the mutexes for any of the signalled ones, as well as waiti= ng for kernel events would be very useful. Windows has had this for years. It makes async network programming with thread worker queues significantly less abusive. -adrian
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmokaoTKb05BBaNXpbqHTnSjn5QvXsfGAY7Y%2BcdjJPPSvUA>