Re: eventfd lookalike in FreeBSD ?

From: Adrian Chadd <adrian.chadd_at_gmail.com>
Date: Tue, 28 Jul 2015 10:33:18 -0700
On 28 July 2015 at 10:31, David Chisnall <theraven_at_freebsd.org> wrote:
> 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.

Windows has had this for years. It makes async network programming
with thread worker queues significantly less abusive.


-adrian
Received on Tue Jul 28 2015 - 15:33:19 UTC

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