257 |
|
|
258 |
|
/** |
259 |
|
* Creates an instance of {@code SequenceLock} that will retry |
260 |
< |
* attempts to acquire the lock at least the given number times |
260 |
> |
* attempts to acquire the lock at least the given number of times |
261 |
|
* before blocking. |
262 |
+ |
* |
263 |
+ |
* @param spins the number of times before blocking |
264 |
|
*/ |
265 |
|
public SequenceLock(int spins) { sync = new Sync(spins); } |
266 |
|
|
510 |
|
* Throws UnsupportedOperationException. SequenceLocks |
511 |
|
* do not support Condition objects. |
512 |
|
* |
513 |
< |
* @throws UnsupportedOperationException |
513 |
> |
* @throws UnsupportedOperationException always |
514 |
|
*/ |
515 |
|
public Condition newCondition() { |
516 |
|
throw new UnsupportedOperationException(); |