Re: Locking access to all data members

2007-01-28 Thread Diez B. Roggisch
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

Locking access to all data members

2007-01-28 Thread gooli
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