tim at peierls.net
Tue May 16 20:35:51 EDT 2006
If you find yourself rolling your own read-to-write upgradeable lock, you
might find it useful to go through some earlier discussion on a related
topic on this list. A reasonable starting point is
not much progress since then, sad to say.
On 5/16/06, Moran Avigdor <moran at gigaspaces.com> wrote:
> I was looking for something similar to *ReadWriteUpgradeLock* in the
> concurrency package.
> Upgrading from a read lock to a write lock with *
> java.util.concurrent.locks.ReentrantReadWriteLock *is not possible unless
> the read lock
> is released. This entails that if conditions were met prior to the
> write lock, they need to be re-checked.
> Is there a way, so that a thread that holds a read lock can acquire a
> write lock without releasing the read lock first?
> Thanks in advance.
> *Moran Avigdor* R&D Engineer
> Cell: +972 54 2112783
> moran at gigaspaces.comwww.gigaspaces.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Concurrency-interest