"Hacking" the event model of Nginx

Aleksandar Lazic al-nginx at none.at
Tue Apr 15 12:20:52 MSD 2008


On Die 15.04.2008 07:16, François Battail wrote:
>
>Le lundi 14 avril 2008 à 16:27 +0200, Manlio Perillo a écrit :
>
>> Note that this it not sufficient to "wake up" the main thread.
>> In fact, the main event loop can be waiting on the select/poll/epoll/kqueue.
>
>Yes, you're right. I've rewritten the epoll module to have the
>epoll_wait calls on a separate thread and to have the main event loop
>waiting on a queue which receive the epoll events and the events from
>my threads.

Have you taken a look into the libev
http://software.schmorp.de/pkg/libev.html or libevent
http://monkey.org/~provos/libevent/ before you have implement your own
epoll handlers ;-)

cheers

Aleks





More information about the nginx mailing list