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

Reply via email to