Re: eventfd lookalike in FreeBSD ?

From: David Chisnall <theraven_at_FreeBSD.org>
Date: Tue, 28 Jul 2015 18:31:22 +0100
On 28 Jul 2015, at 18:23, Adrian Chadd <adrian.chadd_at_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 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
Received on Tue Jul 28 2015 - 15:30:39 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:58 UTC