Re: [PATCH 1/8] Change filedescriptor API to be thread safe

2012-10-11 Thread Pekka Paalanen
On Wed, 10 Oct 2012 20:58:34 -0400 Kristian Høgsberg wrote: > On Wed, Oct 10, 2012 at 11:32:15AM +0300, Pekka Paalanen wrote: > > On Tue, 9 Oct 2012 22:37:58 -0400 > > Kristian Høgsberg wrote: > > > > > The update callback for the file descriptors was always a bit awkward and > > > un-intuitiv

Re: [PATCH 1/8] Change filedescriptor API to be thread safe

2012-10-10 Thread Kristian Høgsberg
On Wed, Oct 10, 2012 at 11:32:15AM +0300, Pekka Paalanen wrote: > On Tue, 9 Oct 2012 22:37:58 -0400 > Kristian Høgsberg wrote: > > > The update callback for the file descriptors was always a bit awkward and > > un-intuitive. The idea was that whenever the protocol code needed to > > write data

Re: [PATCH 1/8] Change filedescriptor API to be thread safe

2012-10-10 Thread Pekka Paalanen
On Tue, 9 Oct 2012 22:37:58 -0400 Kristian Høgsberg wrote: > The update callback for the file descriptors was always a bit awkward and > un-intuitive. The idea was that whenever the protocol code needed to > write data to the fd it would call the 'update' function. This function > would adjust

[PATCH 1/8] Change filedescriptor API to be thread safe

2012-10-09 Thread Kristian Høgsberg
The update callback for the file descriptors was always a bit awkward and un-intuitive. The idea was that whenever the protocol code needed to write data to the fd it would call the 'update' function. This function would adjust the mainloop so that it polls for POLLOUT on the fd so we can eventua