public class OReadersWriterSpinLock extends AbstractOwnableSynchronizer
Constructor and Description |
---|
OReadersWriterSpinLock() |
Modifier and Type | Method and Description |
---|---|
void |
acquireReadLock() |
void |
acquireWriteLock() |
void |
releaseReadLock() |
void |
releaseWriteLock() |
boolean |
tryAcquireReadLock(long timeout)
Tries to acquire lock during provided interval of time and returns either if provided time
interval was passed or if lock was acquired.
|
getExclusiveOwnerThread, setExclusiveOwnerThread
public boolean tryAcquireReadLock(long timeout)
timeout
- Timeout during of which we should wait for read lock.true
if read lock was acquired.public void acquireReadLock()
public void releaseReadLock()
public void acquireWriteLock()
public void releaseWriteLock()
Copyright © 2009–2020 OrientDB. All rights reserved.