[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#509225: ITP: tevent -- talloc-based event loop library

Hoi Guus,

Am Freitag, den 19.12.2008, 23:14 +0100 schrieb Guus Sliepen:
> On Fri, Dec 19, 2008 at 10:53:47PM +0100, Jelmer Vernooij wrote:
> >    Package name: tevent
> >     Description: talloc-based event  loop library
> > 
> > tevent is a simple library that can handle the main event loop for an
> > application. It supports three kinds of events: timed events, file
> > descriptors becoming readable or writable and signals.
> > 
> > Talloc is used for memory management, both internally and for private
> > data provided by users of the library.
> It seems very similar to libevent and libev, both already in Debian. Is there
> anything special about tevent using talloc? Is upstream aware of these other
> projects? If possible, try to get them to work with each other to merge their
> features and reduce the number of event loop libraries.
We're certainly aware of these other two projects - the name tevent was
picked to avoid naming conflicts or confusion with them.

The talloc integration is one of the main advantages for us, since LDB
(and Samba 4, which also uses this library heavily but includes a copy
of it at the moment) use talloc pretty heavily. 

Also, as far as I can tell neither libevent nor libev provide AIO
support at the moment.

An alternative would be to implement tevent as a wrapper around libev or
libevents that added talloc support to the API but that's hardly worth
the trouble as that would add another dependency and the library is
pretty small itself as is.



Jelmer Vernooij <jelmer@samba.org> - http://samba.org/~jelmer/
Jabber: jelmer@jabber.fsfe.org

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil

Reply to: