org.objectweb.perseus.concurrency.lib
Class RWLockValue
java.lang.Object
org.objectweb.perseus.concurrency.lib.RWLockValue
- LockValue
public class RWLockValue
extends java.lang.Object
Simple lock value comparator. Possible values are:
- nolock (compatible w/ any lock level)
- read (compatible w/ nolocks and other reads)
- upgrade (compatible only w/ nolocks)
- write (compatible only w/ nolocks)
From a compatibility point of view upgrade lock requests are equivalent
to exclusive lock request. However, distinguishing the two can
be convenient in the treatement of requests (two upgrades on the same
object automatically leads to a deadlock)
READ
public static final byte READ
- 1
UPGRADE
public static final byte UPGRADE
- 2
WRITE
public static final byte WRITE
- 3
Copyright © 2000-2002 France Telecom S.A., INRIA, IMAG-LSR All Rights Reserved.