org.drools.common
Class UpgradableReentrantReadWriteLock

java.lang.Object
  extended by org.drools.common.UpgradableReentrantReadWriteLock

public class UpgradableReentrantReadWriteLock
extends Object


Constructor Summary
UpgradableReentrantReadWriteLock()
           
UpgradableReentrantReadWriteLock(boolean shouldTryAtomicUpgrade)
           
 
Method Summary
 int getWriteHoldCount()
           
 boolean isWriteLockedByCurrentThread()
           
 void readLock()
           
 void readUnlock()
           
 void writeLock()
           
 void writeUnlock()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpgradableReentrantReadWriteLock

public UpgradableReentrantReadWriteLock()

UpgradableReentrantReadWriteLock

public UpgradableReentrantReadWriteLock(boolean shouldTryAtomicUpgrade)
Method Detail

readLock

public void readLock()

readUnlock

public void readUnlock()

writeLock

public void writeLock()

writeUnlock

public void writeUnlock()

isWriteLockedByCurrentThread

public boolean isWriteLockedByCurrentThread()

getWriteHoldCount

public int getWriteHoldCount()


Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.