Examples of lock()


Examples of sun.java2d.pipe.RenderQueue.lock()

                    rq = bc.getRenderQueue();
                }
            }
        }
        if (rq != null) {
            rq.lock();
            try {
                rq.flushAndInvokeNow(new Runnable() {
                    public void run() {
                        doDispose(disposer);
                    }
View Full Code Here

Examples of test.aop.Lockable.lock()

            new SingletonMetadataAwareAspectInstanceFactory(new MakeLockable(),"someBean")),
        NotLockable.class);
    assertTrue(notLockable1 instanceof Lockable);
    Lockable lockable = (Lockable) notLockable1;
    assertFalse(lockable.locked());
    lockable.lock();
    assertTrue(lockable.locked());

    NotLockable notLockable2Target = new NotLockable();
    NotLockable notLockable2 = (NotLockable) createProxy(notLockable2Target,
        getFixture().getAdvisors(
View Full Code Here

Examples of test.mixin.Lockable.lock()

    itb.setAge(newAge);
    assertTrue(itb.getAge() == newAge);

    Lockable lockable = (Lockable) itb;
    assertFalse(lockable.locked());
    lockable.lock();

    assertTrue(itb.getAge() == newAge);
    try {
      itb.setAge(1);
      fail("Setters should fail when locked");
View Full Code Here

Examples of xbird.util.concurrent.lock.ILock.lock()

            return readBlock;
        }

        private int[] getBlock(final int page) {
            final ILock lock = _lock;
            lock.lock();
            try {
                return _pageReadCache.get(page);
            } finally {
                lock.unlock();
            }
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.