Re: squid-smp

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Tue, 13 Oct 2009 00:29:56 +0200

fre 2009-10-09 klockan 01:50 -0400 skrev Sachin Malave:

> I think it is possible to have a thread , which will be watching
> AsyncCallQueue, if it finds an entry there then it will execute the
> dial() function.

Except that none of the dialed AsyncCall handlers is currently thread
safe.. all expect to be running in the main thread all alone..

> can we separate dispatchCalls() in EventLoop.cc for that purpose? We
> can have a thread executing distatchCalls() continuously and if error
> condition occurs it is written in "error" shared variable..... which
> is then read by main thread executing mainLoop....... in the same way
> returned dispatchedSome can also be passed to main thread...

Not sure I follow.

Regards
Henrik
Received on Mon Oct 12 2009 - 22:30:01 MDT

This archive was generated by hypermail 2.2.0 : Tue Oct 13 2009 - 12:00:06 MDT