Package org.infinispan.util.concurrent.locks

Examples of org.infinispan.util.concurrent.locks.VisibleOwnerReentrantLock


   }

   @Override
   protected void initLocks(int numLocks) {
      sharedLocks = new VisibleOwnerReentrantLock[numLocks];
      for (int i = 0; i < numLocks; i++) sharedLocks[i] = new VisibleOwnerReentrantLock();
   }
View Full Code Here


    */
   public ReentrantStripedLockContainer(int concurrencyLevel, Equivalence<Object> keyEquivalence) {
      super(keyEquivalence);
      int numLocks = calculateNumberOfSegments(concurrencyLevel);
      sharedLocks = new VisibleOwnerReentrantLock[numLocks];
      for (int i = 0; i < numLocks; i++) sharedLocks[i] = new VisibleOwnerReentrantLock();
   }
View Full Code Here

      super(concurrencyLevel);
   }

   @Override
   protected ReentrantLock newLock() {
      return new VisibleOwnerReentrantLock();
   }
View Full Code Here

   }

   @Override
   protected void initLocks(int numLocks) {
      sharedLocks = new VisibleOwnerReentrantLock[numLocks];
      for (int i = 0; i < numLocks; i++) sharedLocks[i] = new VisibleOwnerReentrantLock();
   }
View Full Code Here

TOP

Related Classes of org.infinispan.util.concurrent.locks.VisibleOwnerReentrantLock

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.