Re: Synchronization in java.util.Collections

2002-11-16 Thread Eric Blake
Dalibor Topic wrote: Hi, I've looked over Classpath's implementation of synchronized* methods in java.util.Collections, and I don't understand why the synchronized wrapper classes sync on their own specific mutex field instead of syncing on themselves? i.e. why not have all the wrapper methods s

Synchronization in java.util.Collections

2002-11-15 Thread Dalibor Topic
Hi, I've looked over Classpath's implementation of synchronized* methods in java.util.Collections, and I don't understand why the synchronized wrapper classes sync on their own specific mutex field instead of syncing on themselves? i.e. why not have all the wrapper methods synchronized and drop t