> From: Carsten Ziegeler [mailto:[EMAIL PROTECTED]] 
> 
> Hi,
> 
> sorry for this question - but I'm currently totally confused
> if the avalon concepts (4.x) always work as expected. (I hope 
> they do...)
> 
> Example: I have two components, one being ThreadSafe and one 
> Poolable component which is of course not ThreadSafe.
> 
> Now, the ThreadSafe component looks up the Poolable one, lets 
> say in the compose() method and stores this instance for the 
> whole lifetime.
> 
> Does this work properly? I would assume that now the Poolable 
> component is used as a ThreadSafe one. Is this right? Or do I 
> oversee something?

That should work as expected (?), meaning that the threadsafe component
*has* to provide the synchronization for the poolable component.
That is, if two threads concurrently access the ThreadSafe component,
they must not be allowed to access the poolable component 
simultaneously.

/LS


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to