gooli schrieb:
> I have a class with a lot of attributes whose objects are accessed
> from multiple threads. I would like to synchronize the access to all
> the attributes, i.e. acquire a lock, return the value, release the
> lock (in a finally clause).
>
> Is there a way to do that without tur
I have a class with a lot of attributes whose objects are accessed
from multiple threads. I would like to synchronize the access to all
the attributes, i.e. acquire a lock, return the value, release the
lock (in a finally clause).
Is there a way to do that without turning each attribute into a