Examples of acquireSharedLock()


Examples of com.orientechnologies.common.concur.resource.OSharedResourceExternal.acquireSharedLock()

    for (int i = 0; i < MAX; ++i) {
    }
    final long fixed = System.currentTimeMillis() - timer;

    for (int i = 0; i < MAX; ++i) {
      lock.acquireSharedLock();
      lock.releaseSharedLock();
    }

    System.out.println("Read Locks: " + (System.currentTimeMillis() - timer - fixed));
    timer = System.currentTimeMillis();
View Full Code Here

Examples of com.orientechnologies.common.concur.resource.OSharedResourceExternal.acquireSharedLock()

    for (int i = 0; i < MAX; ++i) {
    }
    final long fixed = System.currentTimeMillis() - timer;

    for (int i = 0; i < MAX; ++i) {
      lock.acquireSharedLock();
      lock.releaseSharedLock();
    }

    System.out.println("Read Locks: " + (System.currentTimeMillis() - timer - fixed));
    timer = System.currentTimeMillis();
View Full Code Here

Examples of com.orientechnologies.orient.core.index.hashindex.local.cache.OCacheEntry.acquireSharedLock()

      this.fileId = fileId;
      this.name = resolveTreeName(fileId);

      OCacheEntry rootCacheEntry = diskCache.load(this.fileId, this.rootBucketPointer.getPageIndex(), false);

      rootCacheEntry.acquireSharedLock();
      try {
        OSBTreeBonsaiBucket<K, V> rootBucket = new OSBTreeBonsaiBucket<K, V>(rootCacheEntry,
            this.rootBucketPointer.getPageOffset(), keySerializer, valueSerializer, ODurablePage.TrackMode.NONE);
        keySerializer = (OBinarySerializer<K>) OBinarySerializerFactory.getInstance().getObjectSerializer(
            rootBucket.getKeySerializerId());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.