Subject: Re: interrupting kevent()
To: Antti Kantee <>
From: Andrew Doran <>
List: tech-kern
Date: 10/23/2007 14:23:40
On Tue, Oct 23, 2007 at 03:45:49PM +0300, Antti Kantee wrote:

> I have a dual eventloop/thread model and I need to interrupt the event
> call from a thread sometimes.  I didn't find any sensible way of doing
> this, so I added a KEVENT_TICKLE ioctl() to kqueue for interrupting
> the wait.
> Did I miss something or does the following look ok?

Other ideas: use socketpair() or pthread_kill(thread, SIGIO).