Re: async-calls squid3/src comm.cc,1.81.4.16,1.81.4.17

From: Adrian Chadd <adrian@dont-contact.us>
Date: Tue, 8 Jan 2008 13:21:24 +0900

On Mon, Jan 07, 2008, Alex Rousskov wrote:

> > Finally, I can't see how async callbacks will make SMP much easier to implement.
> > Could someone give me some insight into this?
>
> The AsyncCall API can be used to call threads or processes without
> changing the caller or the callee code. Selected AsyncJob kids could
> become threads or even processes after their dependence on global
> variables is reduced.

How do you guarantee that something else hasn't modified the "state"
being passed into the async call? Thats the exact problem seen in
the commit which started all of this discussion.

Adrian
Received on Mon Jan 07 2008 - 21:12:26 MST

This archive was generated by hypermail pre-2.1.9 : Wed Jan 30 2008 - 12:00:09 MST