public interface ReadWriteLock
Modifier and Type | Method and Description |
---|---|
void |
lockRead()
Acquires the read lock
|
void |
lockWrite()
Acquires the write lock
|
boolean |
tryLockRead()
Attempts to acquire the read lock
|
boolean |
tryLockWrite()
Attempts to acquire the write lock
|
void |
unlockRead()
Releases the read lock
|
void |
unlockWrite()
Releases the write lock
|
void lockRead()
boolean tryLockRead()
void unlockRead()
void lockWrite()
boolean tryLockWrite()
void unlockWrite()