Examples of sleep()


Examples of com.golden.gamedev.engine.timer.SystemTimer.sleep()

        // workaround for OpenGL mode
        firstTime = false;
        dummyTimer.refresh();
      }
     
      long elapsedTime = dummyTimer.sleep();
      double increment = 0.00065 * elapsedTime;
      if (increment > 0.22) {
        increment = 0.22 + (increment / 6);
      }
      alpha += increment;
View Full Code Here

Examples of com.webobjects.appserver.WOApplication.sleep()

        }
      }
      return response;
    }
    finally {
      application.sleep();
    }
  }
 
  protected void downloadFinished(AjaxUploadProgress progress) {
  }
View Full Code Here

Examples of java.util.concurrent.TimeUnit.sleep()

//            @Override
            public void flush()
            {
                try
                {
                    unit.sleep(2 * timeout);
//                    super.flush();
                }
                catch (InterruptedException x)
                {
                    throw new SPDYException(x);
View Full Code Here

Examples of net.sf.katta.util.SleepServer.sleep()

  @Test
  public void testNoSleep() throws Exception {
    SleepServer server = new SleepServer();
    long start = System.currentTimeMillis();
    server.sleep(0, 0, null);
    long time = System.currentTimeMillis() - start;
    assertTrue(time < 10);
  }

  @Test
View Full Code Here

Examples of org.apache.hadoop.hbase.util.Sleeper.sleep()

            }
          }
        }
        // Do some housekeeping before going to sleep
        housekeeping();
        sleeper.sleep(lastMsg);
      } // for
    } catch (Throwable t) {
      LOG.fatal("Unhandled exception. Aborting...", t);
      abort();
    }
View Full Code Here

Examples of org.apache.kafka.common.utils.SystemTime.sleep()

        final SystemTime time = new SystemTime();
        final AtomicBoolean done = new AtomicBoolean(false);
        final Object lock = new Object();
        Thread t1 = new Thread() {
            public void run() {
                time.sleep(1);
                int counter = 0;
                long start = time.nanoseconds();
                for (int i = 0; i < iters; i++) {
                    synchronized (lock) {
                        counter++;
View Full Code Here

Examples of org.apache.wicket.util.time.Duration.sleep()

      @Override
      public void run()
      {
        sync.lockPage(1);
        t1locks[0] = Time.now();
        hold.sleep();
        sync.unlockAllPages();
      }
    }

    class T2 extends Thread
View Full Code Here

Examples of org.eclipse.jetty.websocket.common.test.BlockheadClient.sleep()

            client.sendStandardRequest();
            client.expectUpgradeResponse();

            // This wait should be shorter than client timeout above, but
            // longer than server timeout configured in TimeoutServlet
            client.sleep(TimeUnit.MILLISECONDS,1000);

            // Write to server
            // This action is possible, but does nothing.
            // Server could be in a half-closed state at this point.
            // Where the server read is closed (due to timeout), but the server write is still open.
View Full Code Here

Examples of org.eclipse.swt.widgets.Display.sleep()

      return;
    widget.setLocation(location);
    widget.setVisible(true);
    while (!widget.isDisposed() && widget.isVisible()) {
      if (!display.readAndDispatch())
        display.sleep();
    }
    if (!widget.isDisposed()) {
      widget.dispose();
    }
  }
View Full Code Here

Examples of org.eclipse.swt.widgets.Display.sleep()

  Utils.centreWindow( shell );
    shell.open();
   
    if ( modal ){
      while (!shell.isDisposed())
        if (!display.readAndDispatch()) display.sleep();
    }
  }
 
  public void
  append(
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.