[Libevent-users] libevent + libpthread_workqueue = EV_PARALLEL

2012-01-09 Thread Mark Heily
See attached for an experimental patch that adds a new flag EV_PARALLEL for the ev_events field of 'struct event'. If this flag is turned on, the callback will be invoked asynchronously using a threadpool. The caller is responsible for ensuring that the callback function can safely be executed

Re: [Libevent-users] [BUG] casting from evutil_socket_t to int

2012-01-09 Thread Nick Mathewson
On Sun, Jan 8, 2012 at 1:48 PM, Mark Heily wrote: > I found a couple of places in event.c where the 'ev_fd' field of 'struct > event' is cast from evutil_socket_t to an int.  This field is a 64-bit > pointer on 64-bit versions of MS Windows, and should not be cast to a 32-bit > integer. See below