Examples of unlockRead()


Examples of com.caucho.db.lock.Lock.unlockRead()

    if (_readLocks != null) {
      for (int i = 0; i < _readLocks.size(); i++) {
        Lock lock = _readLocks.get(i);

        try {
          lock.unlockRead();
        } catch (Throwable e) {
          log.log(Level.WARNING, e.toString(), e);
        }
      }
View Full Code Here

Examples of com.caucho.db.lock.Lock.unlockRead()

      try {
        byte []blockBuffer = block.getBuffer();

        os.write(blockBuffer, blockOffset, length);
      } finally {
        lock.unlockRead();
      }
    } finally {
      block.free();
    }
  }
View Full Code Here

Examples of com.caucho.db.lock.Lock.unlockRead()

        System.arraycopy(blockBuffer, blockOffset,
                         buffer, offset, length);

        return length;
      } finally {
        lock.unlockRead();
      }
    } finally {
      block.free();
    }
  }
View Full Code Here

Examples of jersey.repackaged.jsr166e.StampedLock.unlockRead()

        final StampedLock lock = this.lock;
        long stamp = lock.readLock();
        try {
            ret = internalContainsAll(c, 0, -1);
        } finally {
            lock.unlockRead(stamp);
        }
        return ret;
    }

    public boolean equals(Object o) {
View Full Code Here

Examples of jersey.repackaged.jsr166e.StampedLock.unlockRead()

        final StampedLock lock = this.lock;
        long stamp = lock.readLock();
        try {
            return internalEquals((List<?>)o, 0, -1);
        } finally {
            lock.unlockRead(stamp);
        }
    }

    public E get(int index) {
        final StampedLock lock = this.lock;
View Full Code Here

Examples of jersey.repackaged.jsr166e.StampedLock.unlockRead()

                index < count && index >= 0)
                e = (E)items[index];
            else
                oobe = true;
        } finally {
            lock.unlockRead(stamp);
        }
        if (oobe)
            throw new ArrayIndexOutOfBoundsException(index);
        return e;
    }
View Full Code Here

Examples of jersey.repackaged.jsr166e.StampedLock.unlockRead()

        final StampedLock lock = this.lock;
        long s = lock.readLock();
        try {
            h = internalHashCode(0, -1);
        } finally {
            lock.unlockRead(s);
        }
        return h;
    }

    public int indexOf(Object o) {
View Full Code Here

Examples of jersey.repackaged.jsr166e.StampedLock.unlockRead()

        final StampedLock lock = this.lock;
        long stamp = lock.readLock();
        try {
            idx = findFirstIndex(array, o, 0, count);
        } finally {
            lock.unlockRead(stamp);
        }
        return idx;
    }

    public boolean isEmpty() {
View Full Code Here

Examples of jersey.repackaged.jsr166e.StampedLock.unlockRead()

        final StampedLock lock = this.lock;
        long stamp = lock.readLock();
        try {
            idx = findLastIndex(array, o, count - 1, 0);
        } finally {
            lock.unlockRead(stamp);
        }
        return idx;
    }

    public ListIterator<E> listIterator() {
View Full Code Here

Examples of jersey.repackaged.jsr166e.StampedLock.unlockRead()

        final StampedLock lock = this.lock;
        long stamp = lock.readLock();
        try {
            n = count;
        } finally {
            lock.unlockRead(stamp);
        }
        return n;
    }

    public List<E> subList(int fromIndex, int toIndex) {
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.