Examples of release()


Examples of com.google.gerrit.server.git.CreateCodeReviewNotes.release()

          notes.add(change, ObjectId.fromString(ps.getRevision().get()));
        }
        notes.commit("Exported prior reviews from Gerrit Code Review\n");
        notes.updateRef();
      } finally {
        notes.release();
      }
    } finally {
      git.close();
    }
  }
View Full Code Here

Examples of com.hazelcast.concurrent.semaphore.Permit.release()

    }

    @Override
    public void run() throws Exception {
        Permit permit = getPermit();
        permit.release(permitCount, firstCaller);
        response = true;
    }

    @Override
    public int getFactoryId() {
View Full Code Here

Examples of com.hazelcast.core.ISemaphore.release()

            int rand = (int) (Math.random() * 5) + 1;

            semaphore.acquire(rand);
            initialPermits -= rand;
            assertEquals(initialPermits, semaphore.availablePermits());
            semaphore.release(rand);
            initialPermits += rand;
            assertEquals(initialPermits, semaphore.availablePermits());

            instances[i].shutdown();

View Full Code Here

Examples of com.higherfrequencytrading.affinity.AffinityLock.release()

                        excerpt2.finish();
                    }
                } catch (IOException e) {
                    e.printStackTrace();
                } finally {
                    al2.release();
                }
            }
        });
        t.start();
View Full Code Here

Examples of com.hlcl.rql.as.Page.release()

    Page currentPg = project.getPageById("34009");
    currentPg.undoChanges();
    currentPg.reject("note name", "reject comment");
    currentPg.submitToWorkflow();
    currentPg.release();
   
    currentPg.resetDraftState();
  }
}
View Full Code Here

Examples of com.hp.hpl.jena.tdb.base.block.BlockMgr.release()

        mgr.beginUpdate() ;
        Block block = mgr.allocate(4) ;
        ByteBuffer bb = block.getByteBuffer() ;
        bb.putInt(0,1234) ;
        mgr.write(block) ;
        mgr.release(block) ;
        // -----
        Block block2 = mgr.getRead(block.getId()) ;
        ByteBuffer bb2 = block2.getByteBuffer() ;
        assertArrayEquals(bb.array(), bb2.array()) ;
        mgr.release(block2) ;
View Full Code Here

Examples of com.hp.hpl.jena.tdb.base.recordbuffer.RecordBufferPageMgr.release()

        RecordBufferPage page = rpm.create() ;
        fill(page.getRecordBuffer(), 10, 20, 30) ;
        assertEquals(10, get(page, 0)) ;
        assertEquals(20, get(page, 1)) ;
        assertEquals(30, get(page, 2)) ;
        rpm.release(page) ;
        blkMgr.endUpdate() ;
    }
   
    @Test public void recBufferPage02()
    {
View Full Code Here

Examples of com.hp.hpl.jena.tdb.index.bplustree.BPTreePage.release()

        assertTrue(z instanceof BPTreeRecords) ;
        assertEquals(s, z.getCount()+bpr.getCount()) ;
        check(bpr) ;
        check((BPTreeRecords)z) ;
        bpr.release() ;
        z.release() ;
    }

    @Test public void bpt_records_3()
    {
        BPTreeRecords bpr = make() ;
View Full Code Here

Examples of com.hp.hpl.jena.tdb.index.bplustree.BPTreeRecords.release()

    @Test public void bpt_records_1()
    {
        BPTreeRecords bpr = make() ;
        fill(bpr) ;
        check(bpr) ;
        bpr.release() ;
    }
   
    @Before public void before() { blkMgrRecords.beginUpdate() ; }
    @After public void after() { blkMgrRecords.endUpdate() ; }
   
View Full Code Here

Examples of com.jme3.util.TempVars.release()

        TempVars vars = TempVars.get();
        Matrix4f scaleMat = vars.tempMat4;
        scaleMat.loadIdentity();
        scaleMat.scale(worldTransform.getScale());
        cachedWorldMat.multLocal(scaleMat);
        vars.release();
    }

    /**
     * A {@link Matrix4f matrix} that transforms the {@link Geometry#getMesh() mesh}
     * from model space to world space. This matrix is computed based on the
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.