176 |
|
} |
177 |
|
|
178 |
|
/** |
179 |
< |
* timed write-trylock is interruptible |
179 |
> |
* timed write-tryLock is interruptible |
180 |
|
*/ |
181 |
|
public void testWriteTryLock_Interrupted() { |
182 |
|
final ReentrantReadWriteLock lock = new ReentrantReadWriteLock(); |
224 |
|
} |
225 |
|
|
226 |
|
/** |
227 |
< |
* timed read-trylock is interruptible |
227 |
> |
* timed read-tryLock is interruptible |
228 |
|
*/ |
229 |
|
public void testReadTryLock_Interrupted() { |
230 |
|
final ReentrantReadWriteLock lock = new ReentrantReadWriteLock(); |
248 |
|
|
249 |
|
|
250 |
|
/** |
251 |
< |
* write-trylock fails if locked |
251 |
> |
* write-tryLock fails if locked |
252 |
|
*/ |
253 |
|
public void testWriteTryLockWhenLocked() { |
254 |
|
final ReentrantReadWriteLock lock = new ReentrantReadWriteLock(); |
268 |
|
} |
269 |
|
|
270 |
|
/** |
271 |
< |
* read-trylock fails if locked |
271 |
> |
* read-tryLock fails if locked |
272 |
|
*/ |
273 |
|
public void testReadTryLockWhenLocked() { |
274 |
|
final ReentrantReadWriteLock lock = new ReentrantReadWriteLock(); |
378 |
|
|
379 |
|
|
380 |
|
/** |
381 |
< |
* Read trylock succeeds if readlocked but not writelocked |
381 |
> |
* Read tryLock succeeds if readlocked but not writelocked |
382 |
|
*/ |
383 |
|
public void testTryLockWhenReadLocked() { |
384 |
|
final ReentrantReadWriteLock lock = new ReentrantReadWriteLock(); |
401 |
|
|
402 |
|
|
403 |
|
/** |
404 |
< |
* write trylock fails when readlocked |
404 |
> |
* write tryLock fails when readlocked |
405 |
|
*/ |
406 |
|
public void testWriteTryLockWhenReadLocked() { |
407 |
|
final ReentrantReadWriteLock lock = new ReentrantReadWriteLock(); |
423 |
|
|
424 |
|
|
425 |
|
/** |
426 |
< |
* write timed trylock times out if locked |
426 |
> |
* write timed tryLock times out if locked |
427 |
|
*/ |
428 |
|
public void testWriteTryLock_Timeout() { |
429 |
|
final ReentrantReadWriteLock lock = new ReentrantReadWriteLock(); |
447 |
|
} |
448 |
|
|
449 |
|
/** |
450 |
< |
* read timed trylock times out if write-locked |
450 |
> |
* read timed tryLock times out if write-locked |
451 |
|
*/ |
452 |
|
public void testReadTryLock_Timeout() { |
453 |
|
final ReentrantReadWriteLock lock = new ReentrantReadWriteLock(); |