55 |
|
* <p>This class also supports methods that conditionally provide |
56 |
|
* conversions across the three modes. For example, method {@link |
57 |
|
* #tryConvertToWriteLock} attempts to "upgrade" a mode, returning |
58 |
< |
* valid write stamp if (1) already in writing mode (2) in reading |
58 |
> |
* a valid write stamp if (1) already in writing mode (2) in reading |
59 |
|
* mode and there are no other readers or (3) in optimistic mode and |
60 |
|
* the lock is available. The forms of these methods are designed to |
61 |
|
* help reduce some of the code bloat that otherwise occurs in |