Re: [RFC/PATCH] epoll: replace EPOLL_CTL_DISABLE with EPOLL_CTL_POKE

2012-11-06 Thread Eric Wong
Christof Meerwald wrote: > On Fri, 2 Nov 2012 04:13:12 +, Eric Wong wrote: > [...] > > EPOLL_CTL_POKE may be used to force an item into the epoll > > ready list. Instead of disabling an item asynchronously > > via EPOLL_CTL_DISABLE, this forces the threads calling > > epoll_wait() to handle

Re: [RFC/PATCH] epoll: replace EPOLL_CTL_DISABLE with EPOLL_CTL_POKE

2012-11-06 Thread Eric Wong
Christof Meerwald cme...@cmeerw.org wrote: On Fri, 2 Nov 2012 04:13:12 +, Eric Wong wrote: [...] EPOLL_CTL_POKE may be used to force an item into the epoll ready list. Instead of disabling an item asynchronously via EPOLL_CTL_DISABLE, this forces the threads calling epoll_wait() to

Re: [RFC/PATCH] epoll: replace EPOLL_CTL_DISABLE with EPOLL_CTL_POKE

2012-11-02 Thread Christof Meerwald
On Fri, 2 Nov 2012 04:13:12 +, Eric Wong wrote: [...] > EPOLL_CTL_POKE may be used to force an item into the epoll > ready list. Instead of disabling an item asynchronously > via EPOLL_CTL_DISABLE, this forces the threads calling > epoll_wait() to handle the item in its normal loop. That was

Re: [RFC/PATCH] epoll: replace EPOLL_CTL_DISABLE with EPOLL_CTL_POKE

2012-11-02 Thread Christof Meerwald
On Fri, 2 Nov 2012 04:13:12 +, Eric Wong wrote: [...] EPOLL_CTL_POKE may be used to force an item into the epoll ready list. Instead of disabling an item asynchronously via EPOLL_CTL_DISABLE, this forces the threads calling epoll_wait() to handle the item in its normal loop. That was my

[RFC/PATCH] epoll: replace EPOLL_CTL_DISABLE with EPOLL_CTL_POKE

2012-11-01 Thread Eric Wong
"Paton J. Lewis" wrote: > --- /dev/null > +++ b/tools/testing/selftests/epoll/test_epoll.c > + /* Handle events until we encounter an error or this thread's 'stop' > +condition is set: */ > + while (1) { > + int result = epoll_wait(thread_data->epoll_set, > +

[RFC/PATCH] epoll: replace EPOLL_CTL_DISABLE with EPOLL_CTL_POKE

2012-11-01 Thread Eric Wong
Paton J. Lewis pale...@adobe.com wrote: --- /dev/null +++ b/tools/testing/selftests/epoll/test_epoll.c + /* Handle events until we encounter an error or this thread's 'stop' +condition is set: */ + while (1) { + int result = epoll_wait(thread_data-epoll_set, +