[concurrency-interest] Re: Improving RWLock compatibility - ownership test
30 Nov 2004 01:35:28 -0000
> > I prefer java.util.concurrent.locks.Lock specify the behavior
> > of unlock() in this regard, instead of leaving it undefined.
> Sorry. No can do. Some kinds of locks have a notion of ownership,
> and some do not.
Indeed, the notion of "lock" can be defined broadly enough to
include such a plethora of non-orthogonal semantics that a
reference to a "Lock" is effectively useless without knowledge
of the semantics of the class of the referenced object instance.