11 |
|
import java.util.concurrent.atomic.AtomicBoolean; |
12 |
|
import java.util.concurrent.locks.Condition; |
13 |
|
import java.util.concurrent.locks.Lock; |
14 |
< |
import java.util.concurrent.locks.ReentrantReadWriteLock; |
14 |
> |
import java.util.concurrent.locks.ReadWriteLock; |
15 |
> |
import java.util.concurrent.locks.StampedLock; |
16 |
|
import java.util.concurrent.CountDownLatch; |
17 |
|
import static java.util.concurrent.TimeUnit.MILLISECONDS; |
18 |
|
import java.util.*; |
27 |
|
|
28 |
|
// XXXX Just a skeleton implementation for now. |
29 |
|
public void testTODO() { fail("StampedLockTest needs help"); } |
30 |
< |
|
30 |
> |
|
31 |
> |
public void testConstructor() { new StampedLock(); } |
32 |
> |
|
33 |
|
// /** |
34 |
|
// * A runnable calling lockInterruptibly |
35 |
|
// */ |