| Package | Description |
|---|---|
| de.aristaflow.adept2.util.locking |
| Modifier and Type | Class and Description |
|---|---|
protected class |
ReentrantLock.ReadLock
Represents a read lock which allows multiple objects to hold the lock
simultaneously and multiple times but blocks as soon as one object wants
a write lock.
|
protected class |
ReentrantLock.WriteLock
Represents a write lock which allows an object to hold the lock multiple
times. an object requesting a write lock blocks objects that request a
read lock.
|
| Modifier and Type | Field and Description |
|---|---|
protected ReentrantLock.Lock |
ReentrantLock.readLock
The lock responsible for synchronising read access.
|
protected ReentrantLock.Lock |
ReentrantLock.writeLock
The lock responsible for synchronising write access.
|
| Modifier and Type | Method and Description |
|---|---|
ReentrantLock.Lock |
ReentrantLock.readLock()
Returns the read-lock for this read/write-lock or the exclusive lock in
case of an exclusive lock.
|
ReentrantLock.Lock |
ReentrantLock.writeLock()
Returns the write-lock for this read/write-lock or the exclusive lock in
case of an exclusive lock.
|