Kagamin Wrote: > bearophile Wrote: > > > a certain programming language which starts with "J" that saw fit to make > > EVERY object have its very own monitor....< > > So is the design choice of copying this part of the Java design inside D > > good? I'd like opinions on this topic. > > C# has this design too, but locking a common object directly is not used. C# > used to create separate object for locking, the property to access it being > called SyncRoot. It's implementation is a usual combination of new object() > and CompareExchange.
Ah, I forgot to say, that C# has a sort of guideline to lock the SyncRoot instead of collection itself.
