Optimal multithread model

mikhail maluyk mikhail.maluyk at gmail.com
Mon Mar 15 16:48:20 CET 2010

On Mon, Mar 15, 2010 at 7:52 PM, common at gmx.ch <common at gmx.ch> wrote:

> I have something similar, therefore "how I did it".
> All polling is done by libev in the main-loop, a single main loop.
> If a connection is established and processing the data needs some time, I
> remove the watchers from the loop, and creates a task from the data to
> process and the function to process the data, and pushes this set to an glib
> thread pool.
How do you know beforehand that processing data will take some time?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schmorp.de/pipermail/libev/attachments/20100315/1288b0e9/attachment.html>

More information about the libev mailing list