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 12:30:41
On Mon, Feb 06, 2006 at 12:21:58PM +0100, Julio M. Merino Vidal wrote:
> - Add two new functions, wsevent_free and wsevent_inject.  The former
>   returns the amount of free space in the queue and the latter adds a
>   new event to it.  The latter assumes that the queue has at least one
>   free slot.

I think wseevent_free is a poor name (sonds like the free you do after malloc).
Maybe wsevent_available()?

Why can't you make wsevent_inject just fail if there is no space and have
the caller deal with that?

Martin