Constructor and Description |
---|
RRWLock() |
Modifier and Type | Method and Description |
---|---|
void |
attachObject(Object object)
This method notifies locker, that specific object was added to tracking list
|
void |
detachObject(Object object)
This method notifies locker that specific object was removed from tracking list
|
void |
externalsReadLock()
This methods acquires read-lock on externals, and read-lock on global
|
void |
externalsReadUnlock()
This methods releases read-lock on externals, and read-lock on global
|
void |
externalsWriteLock()
This methods acquires write-lock on externals, and read-lock on global
|
void |
externalsWriteUnlock()
This methods releases write-lock on externals, and read-lock on global
|
void |
globalReadLock()
This method acquires global-level read lock
|
void |
globalReadUnlock()
This method releases global-level read lock
|
void |
globalWriteLock()
This method acquires global-level write lock
|
void |
globalWriteUnlock()
This method releases global-level write lock
|
void |
objectReadLock(Object object)
This method acquires object-level read lock, and global-level read lock
|
void |
objectReadUnlock(Object object)
This method releases object-level read lock, and global-level read lock
|
void |
objectWriteLock(Object object)
This method acquires object-level write lock, and global-level read lock
|
void |
objectWriteUnlock(Object object)
This method releases object-level read lock, and global-level read lock
|
void |
shapeReadLock(Object object,
AllocationShape shape)
This method acquires shape-level read lock, and read locks for object and global
|
void |
shapeReadUnlock(Object object,
AllocationShape shape)
This method releases shape-level read lock, and read locks for object and global
|
void |
shapeWriteLock(Object object,
AllocationShape shape)
This method acquires shape-level write lock, and read locks for object and global
|
void |
shapeWriteUnlock(Object object,
AllocationShape shape)
This method releases shape-level write lock, and read locks for object and global
|
public void attachObject(Object object)
attachObject
in interface Lock
object
- public void detachObject(Object object)
detachObject
in interface Lock
object
- public void globalReadLock()
globalReadLock
in interface Lock
public void globalReadUnlock()
globalReadUnlock
in interface Lock
public void globalWriteLock()
globalWriteLock
in interface Lock
public void globalWriteUnlock()
globalWriteUnlock
in interface Lock
public void objectReadLock(Object object)
objectReadLock
in interface Lock
object
- public void objectReadUnlock(Object object)
objectReadUnlock
in interface Lock
object
- public void objectWriteLock(Object object)
objectWriteLock
in interface Lock
object
- public void objectWriteUnlock(Object object)
objectWriteUnlock
in interface Lock
object
- public void shapeReadLock(Object object, AllocationShape shape)
shapeReadLock
in interface Lock
object
- shape
- public void shapeReadUnlock(Object object, AllocationShape shape)
shapeReadUnlock
in interface Lock
object
- shape
- public void shapeWriteLock(Object object, AllocationShape shape)
shapeWriteLock
in interface Lock
object
- shape
- public void shapeWriteUnlock(Object object, AllocationShape shape)
shapeWriteUnlock
in interface Lock
object
- shape
- public void externalsReadLock()
externalsReadLock
in interface Lock
public void externalsReadUnlock()
externalsReadUnlock
in interface Lock
public void externalsWriteLock()
externalsWriteLock
in interface Lock
public void externalsWriteUnlock()
externalsWriteUnlock
in interface Lock
Copyright © 2016. All Rights Reserved.