11 |
|
|
12 |
|
/** |
13 |
|
* A capability-based lock with three modes for controlling read/write |
14 |
< |
* access. The state of a StampedLock consists of a version and |
15 |
< |
* mode. Lock acquisition methods return a stamp that represents and |
14 |
> |
* access. The state of a StampedLock consists of a version and mode. |
15 |
> |
* Lock acquisition methods return a stamp that represents and |
16 |
|
* controls access with respect to a lock state; "try" versions of |
17 |
|
* these methods may instead return the special value zero to |
18 |
|
* represent failure to acquire access. Lock release and conversion |