Subject: Re: wsevent cleanup
To: Julio M. Merino Vidal <jmmv84@gmail.com>
From: Martin Husemann <martin@duskware.de>
List: tech-kern
Date: 02/06/2006 18:56:36
On Mon, Feb 06, 2006 at 06:51:14PM +0100, Julio M. Merino Vidal wrote:
> wsevent_inject could assert that N < X, provided that there is another
> operation to retrieve the queue's size.  How do you see this?

If the calller does not like the all-or-nothing behaviour, he could
check available space explicitly with wsevent_available() upfront
and only provide as much events as the queue can take to wsevent_inject().

Many callers will not care, I suppose - especially those injecting
single events.

Martin