On Mon, Mar 15, 2010 at 11:44 AM, anomit <[email protected]> wrote: > event loops. Could you please elaborate on this a bit further?
Only one event loop can usefully exist in a process. So you have to consider what users of your library will want, and you won't be able to satisfy them all. If you choose, say, libevent (which is the most popular for fast network programming), then someone writing a GTK+ app, for example, won't be able to use your library. It is possible, but more work, to provide several alternative backends. So you could advertise support for all of libevent, libev, etc. and let the user choose at runtime or compile time. But this partially defeats the purpose of using such a library in the first place. In fact, event loop libraries themselves use this trick to support the various event APIs of different operating systems. kr -- You received this message because you are subscribed to the Google Groups "beanstalk-talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/beanstalk-talk?hl=en.
