Examples of lockReadAndWrite()


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

    Block block = readBlock(addressToBlockId(blockAddress));

    try {
      Lock lock = block.getLock();
      lock.lockReadAndWrite(_blockLockTimeout);

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

        System.arraycopy(buffer, offset,
View Full Code Here

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

    Block block = readBlock(addressToBlockId(blockAddress));

    try {
      Lock lock = block.getLock();
      lock.lockReadAndWrite(_blockLockTimeout);

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

        int blockTail = blockOffset;
View Full Code Here

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

  {
    Block block = readBlock(addressToBlockId(blockAddress));

    try {
      Lock lock = block.getLock();
      lock.lockReadAndWrite(_blockLockTimeout);

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

        writeLong(blockBuffer, offset, value);
View Full Code Here

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

      try {
        byte []blockBuffer = block.getBuffer();
        int freeOffset = -1;

        Lock lock = block.getLock();
        lock.lockReadAndWrite(_blockLockTimeout);

        try {
          for (int i = 0; i < MINI_FRAG_PER_BLOCK; i++) {
            int offset = i / 8 + MINI_FRAG_ALLOC_OFFSET;
            int mask = 1 << (i % 8);
View Full Code Here

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

  {
    Block block = readBlock(fragmentAddress);

    try {
      Lock lock = block.getLock();
      lock.lockReadAndWrite(_blockLockTimeout);

      try {
        int fragIndex = (int) (fragmentAddress & BLOCK_OFFSET_MASK);
        int offset = fragIndex / 8 + MINI_FRAG_ALLOC_OFFSET;
        int mask = 1 << (fragIndex % 8);
View Full Code Here

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

    Block block = readBlock(addressToBlockId(fragmentAddress));

    try {
      Lock lock = block.getLock();
      lock.lockReadAndWrite(_blockLockTimeout);

      try {
        int blockOffset = getMiniFragmentOffset(fragmentAddress);

        byte []blockBuffer = block.getBuffer();
View Full Code Here

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

    Block block = readBlock(addressToBlockId(fragmentAddress));

    try {
      Lock lock = block.getLock();
      lock.lockReadAndWrite(_blockLockTimeout);

      try {
        int blockOffset = getMiniFragmentOffset(fragmentAddress);

        byte []blockBuffer = block.getBuffer();
View Full Code Here

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

                                   boolean isOverride,
                                   Block block)
    throws IOException, SQLException
  {
    Lock blockLock = block.getLock();
    blockLock.lockReadAndWrite(_timeout);
     
    try {
      block.read();
     
      validate(block);
View Full Code Here

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

    try {
      validate(block);
       
      Lock blockLock = block.getLock();
      blockLock.lockReadAndWrite(_timeout);
 
      try {
        split(parent, block);

        validate(block);
View Full Code Here

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

    Block rootBlock = _rootBlock; // store.readBlock(rootBlockId);
    rootBlock.allocate();

    try {
      Lock rootLock = rootBlock.getLock();
      rootLock.lockReadAndWrite(_timeout);
     
      try {
  splitRoot(rootBlock);

        validate(rootBlock);
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.