Examples of waitOne()


Examples of com.ngt.jopenmetaverse.shared.sim.events.AutoResetEvent.waitOne()

              };
              Client.assets.RequestAsset(gestureID, AssetType.Gesture, true,
                  assetReceivedCallback);

              try {
                gotAsset.waitOne(30 * 1000);
              } catch (InterruptedException e1) {
                JLogger.error("Error while playing a gesture: " + Utils.getExceptionStackTraceAsString(e1));
              }

              if (gesture[0] != null && gesture[0].Decode())
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.sim.events.AutoResetEvent.waitOne()

            if (e.getSimulator().equals(Client.network.getCurrentSim()))
              queueEvent.set();
          }
          };
          Client.network.RegisterOnEventQueueRunningCallback(queueCallback);
          queueEvent.waitOne(10 * 1000);
          Client.network.UnregisterOnEventQueueRunningCallback(queueCallback);                   
    }

    teleportStat = TeleportStatus.None;
    teleportEvent.reset();
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.sim.events.AutoResetEvent.waitOne()

           
          Client.assets.registerOnXferReceived(xferCallback);
           
          xferID[0] = Client.assets.RequestAssetXfer(fileName, true, false, UUID.Zero, AssetType.Unknown, true);
   
            if (gotMuteList.waitOne(60 * 1000))
            {
              muteList = Utils.bytesWithTrailingNullByteToString(assetData[0]);
   
              synchronized (MuteList.getDictionary())
              {
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.sim.events.AutoResetEvent.waitOne()

        itemList = (List<MapItem>)itemListArray[0];

        OnGridItems.addObserver(callback);
        RequestMapItems(regionHandle, item, layer);

        itemsEvent.waitOne(timeoutMS);

        OnGridItems.deleteObserver(callback);

        return itemList;
  }
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.sim.events.AutoResetEvent.waitOne()

            int t = 0;
            AutoResetEvent sleepEvent = new AutoResetEvent(false);
            while (WaitingForUploadConfirm && t < UPLOAD_CONFIRM_TIMEOUT)
            {
//                System.Threading.Thread.Sleep(SLEEP_INTERVAL);
                sleepEvent.waitOne(SLEEP_INTERVAL);
                t += SLEEP_INTERVAL;
            }

            if (t < UPLOAD_CONFIRM_TIMEOUT)
            {
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.sim.events.AutoResetEvent.waitOne()

                  boolean success;
                  try
                  {
                    UploadRequestResult uploadResult = RequestUpload(AssetType.Texture, textureData, true, transactionID);
                      success = uploadEvent.waitOne(Client.settings.TRANSFER_TIMEOUT);
                  }
                  catch (Exception e)
                  {
                    JLogger.warn(e);
                      success = false;
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.sim.events.AutoResetEvent.waitOne()

        fetchedItem = fetchedItemArray[0];

        onItemReceived.addObserver(callback);
        RequestFetchInventory(itemID, ownerID);

        fetchEvent.waitOne(timeoutMS);
        onItemReceived.deleteObserver(callback);

        return fetchedItem;
  }
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.sim.events.AutoResetEvent.waitOne()

      }};

      onFolderUpdated.addObserver(callback);

      RequestFolderContents(folder, owner, folders, items, order);
      if (fetchEvent.waitOne(timeoutMS))
        objects = _Store.GetContents(folder);

      onFolderUpdated.deleteObserver(callback);

      return objects;
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.sim.events.AutoResetEvent.waitOne()

        }
      }};
      onFindObjectByPathReply.addObserver(callback);

      RequestFindObjectByPath(baseFolder, inventoryOwner, path);
      findEvent.waitOne(timeoutMS);

      onFindObjectByPathReply.deleteObserver(callback);

      return foundItem[0];
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.sim.events.AutoResetEvent.waitOne()

        onTaskInventoryReply.addObserver(callback);

        RequestTaskInventory(objectLocalID);

        if (taskReplyEvent.waitOne(timeoutMS))
        {
          onTaskInventoryReply.deleteObserver(callback);

          if (!Utils.isNullOrEmpty(filename[0]))
          {
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.