Welcome! Log In Create A New Profile

Advanced

Event loop plus another event loop

Marat Dakota
January 17, 2015 08:12PM
Hi,

Please correct me if I'm wrong, but as for my understanding nginx works
like this:

// Busy loop
while (true) {
`process events and call callbacks`();
}

I'm writing a module for a piece of software which works the same way.
So, what I need is a mechanism to call both handlers in a busy loop:

while (true) {
`process events and call callbacks`();
`process my piece of software events and call callbacks`();
}

Is this possible?

Thanks.

--
Marat
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Event loop plus another event loop

Marat Dakota 1271 January 17, 2015 08:12PM

Re: Event loop plus another event loop

Yichun Zhang (agentzh) 517 January 21, 2015 05:02PM

Re: Event loop plus another event loop

Jeff Kaufman 503 January 22, 2015 08:58AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 107
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready