Examples of lock()


Examples of org.w3c.tools.resources.DummyResourceReference.lock()

  throws MultipleLockException
    {
  DummyResourceReference rr =
      (DummyResourceReference) getContentTypes();
  try {
      Resource r = rr.lock();
      r.delete();
  } catch (InvalidResourceException ex) {
  } finally {
      rr.invalidate();
      rr.unlock();
View Full Code Here

Examples of org.w3c.tools.resources.ResourceReference.lock()

    if (r_wrapper == null) { //lookup for wrapper
        httpd server =
      (httpd) ssiframe.getFileResource().getServer();
        ResourceReference rr_root = server.getRootReference();
        try {
      FramedResource root = (FramedResource) rr_root.lock();
      LookupState ls = new LookupState(code);
      LookupResult lr = new LookupResult(rr_root);
      ResourceReference wrap = null;
      if (root.lookup(ls,lr))
          wrap = lr.getTarget();
View Full Code Here

Examples of org.wicketstuff.security.hive.BasicHive.lock()

      }
    }
    inputReaders.clear();
    if (!readAnything)
      log.warn("No policyFiles or inputstreams were added to the factory!");
    hive.lock();
    return hive;
  }

  /**
   * Reads principals and permissions from a file, found items are added to the hive.
View Full Code Here

Examples of org.xtreemfs.babudb.log.DiskLogger.lock()

     */
    @Override
    public void lockService() throws InterruptedException {
        DiskLogger logger = diskLogger.get();
        if(logger != null) {
            logger.lock();
        }
    }

    /* (non-Javadoc)
     * @see org.xtreemfs.babudb.api.dev.transaction.TransactionManagerInternal#unlockService()
View Full Code Here

Examples of pdp.scrabble.ihm.PlayerPanel.lock()

    }
    else {
      this.server.setPlayertable(
          this.player.getID(), null, getGameLang("Thinking"), -1);
      this.isMyTurn = false;
      ppanel.lock();

    }

    this.mainFrame.setPlayerPanelPlayer(this.player);
    ppanel.getButton("Game Over").addActionListener(new ActionListener() {
View Full Code Here

Examples of quicktime.std.image.ImageDescription.lock()

/* 172 */     if (j != 0) {
/* 173 */       localQDGraphics1 = new QDGraphics(localQDRect);
/* 174 */       localQDGraphics2 = new QDGraphics(8, localQDRect);
/* 175 */       localPixMap2 = localQDGraphics2.getPixMap();
/* 176 */       localImageDescription = new ImageDescription(localPixMap2);
/* 177 */       localImageDescription.lock();
/*     */     }
/*     */
/* 180 */     if ((paramImageSpec instanceof ImageDataSequence)) {
/* 181 */       ImageDataSequence localImageDataSequence2 = (ImageDataSequence)paramImageSpec;
/* 182 */       for (int k = 1; k <= localImageDataSequence2.size(); k++)
View Full Code Here

Examples of quicktime.std.music.MusicData.lock()

/*     */   {
/*  95 */     if (getSize() == 20) return null;
/*     */
/*  97 */     int i = getSize() - 20;
/*  98 */     MusicData localMusicData = new MusicData(i);
/*  99 */     localMusicData.lock();
/* 100 */     int j = getIntFromPointer(QTObject.ID(localMusicData), 0);
/* 101 */     BlockMove(lockAndDeref(20), j, i);
/* 102 */     if (!isLocked()) unlock();
/* 103 */     localMusicData.unlock();
/* 104 */     return localMusicData;
View Full Code Here

Examples of quicktime.util.QTHandle.lock()

      int frames = pics.length;
      int rawImageSize = QTImage.getMaxCompressionSize(gw, gRect,
        gw.getPixMap().getPixelSize(), StdQTConstants.codecLosslessQuality,
        CODEC_TYPE, CodecComponent.bestFidelityCodec);
      QTHandle imageHandle = new QTHandle(rawImageSize, true);
      imageHandle.lock();
      RawEncodedImage compressed = RawEncodedImage.fromQTHandle(imageHandle);
      CSequence seq = new CSequence(gw, gRect, gw.getPixMap().getPixelSize(),
        CODEC_TYPE, CodecComponent.bestFidelityCodec,
        StdQTConstants.codecLosslessQuality,
        StdQTConstants.codecLosslessQuality,
View Full Code Here

Examples of simpleserver.config.data.Chests.Chest.lock()

    if (player.isAttemptLock() || adjacentChest != null && !adjacentChest.isOpen()) {
      if (adjacentChest != null && !adjacentChest.isOpen()) {
        server.data.chests.giveLock(adjacentChest.owner, coordinate, adjacentChest.name);
      } else {
        if (adjacentChest != null) {
          adjacentChest.lock(player);
          adjacentChest.name = player.nextChestName();
        }
        server.data.chests.giveLock(player, coordinate, player.nextChestName());
      }
      player.setAttemptedAction(null);
View Full Code Here

Examples of sun.awt.datatransfer.ToolkitThreadBlockedHandler.lock()

        finished[0] = false;
        result[0] = false;


        // Use the same Toolkit blocking mechanism as in DnD.
        priveleged_lock.lock();

        MToolkit.executeOnEventHandlerThread((FileDialog)target, new Runnable() {
            public void run() {
                priveleged_lock.lock();
                try {
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.