
public class FastReadWriteLock extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
private Semaphore |
lock |
private static long |
serialVersionUID |
| Constructor and Description |
|---|
FastReadWriteLock() |
| Modifier and Type | Method and Description |
|---|---|
void |
read()
Acquire a read lock.
|
void |
release()
Signals that the operation is done.
|
void |
write()
Acquire a write lock.
|
private static final long serialVersionUID
private final Semaphore lock
public void read()
public void write()
public void release()