Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jul 2015 18:31:22 +0100
From:      David Chisnall <theraven@FreeBSD.org>
To:        Adrian Chadd <adrian.chadd@gmail.com>
Cc:        Luigi Rizzo <rizzo@iet.unipi.it>, freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: eventfd lookalike in FreeBSD ?
Message-ID:  <74DCC090-6AA7-43B8-81A1-DF66BC357489@FreeBSD.org>
In-Reply-To: <CAJ-VmoniGM2wv01zn_%2B%2BF-fLOq4mZ5FFTZRX_dYLww51Aq-iJQ@mail.gmail.com>
References:  <20150728121949.GA64588@onelab2.iet.unipi.it> <CAJ-VmoniGM2wv01zn_%2B%2BF-fLOq4mZ5FFTZRX_dYLww51Aq-iJQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 28 Jul 2015, at 18:23, Adrian Chadd <adrian.chadd@gmail.com> wrote:
>=20
> (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 =
add condvar / mutex pairs to a kqueue and wait on a set of condition =
variables, reacquiring the mutexes for any of the signalled ones, as =
well as waiting for kernel events would be very useful.

David




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?74DCC090-6AA7-43B8-81A1-DF66BC357489>