Codota Logo
EDTUtil.waitUntilStopped
Code IndexAdd Codota to your IDE (free)

How to use
waitUntilStopped
method
in
com.jogamp.newt.util.EDTUtil

Best Java code snippets using com.jogamp.newt.util.EDTUtil.waitUntilStopped (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: ch.unibas.cs.gravis/scalismo-native-stub

private static void stopEDT(final EDTUtil edtUtil, final Runnable task) {
  if( null != edtUtil ) {
    if( edtUtil.isRunning() ) {
      final boolean res = edtUtil.invokeStop(true, task);
      if( DEBUG ) {
        if ( !res ) {
          System.err.println("Warning: invokeStop() failed");
          Thread.dumpStack();
        }
      }
    }
    edtUtil.waitUntilStopped();
    // ready for restart ..
  } else if( null != task ) {
    task.run();
  }
}
origin: org.jogamp.jogl/jogl-all-noawt

private static void stopEDT(final EDTUtil edtUtil, final Runnable task) {
  if( null != edtUtil ) {
    if( edtUtil.isRunning() ) {
      final boolean res = edtUtil.invokeStop(true, task);
      if( DEBUG ) {
        if ( !res ) {
          System.err.println("Warning: invokeStop() failed");
          ExceptionUtils.dumpStack(System.err);
        }
      }
    }
    edtUtil.waitUntilStopped();
    // ready for restart ..
  } else if( null != task ) {
    task.run();
  }
}
com.jogamp.newt.utilEDTUtilwaitUntilStopped

Javadoc

Wait until EDT task is stopped.
No stop action is performed, #invokeStop(boolean,java.lang.Runnable) should be used before.

If caller thread is EDT or NEDT, this call will not block.

Popular methods of EDTUtil

  • invoke
    Appends task to the EDT task queue if current thread is not EDT, otherwise execute task immediately.
  • isCurrentThreadEDT
    Returns true if the current thread is the event dispatch thread (EDT). The EDT is the platform speci
  • getPollPeriod
  • invokeStop
    Append the final task to the EDT task queue, signals EDT to stop. If wait is true methods blocks unt
  • isCurrentThreadEDTorNEDT
    Returns true if either #isCurrentThreadEDT() or #isCurrentThreadNEDT() is true, otherwise false.
  • isRunning
  • start
    Starts the EDT after it's creation or after #invokeStop(boolean,Runnable). If the EDT is running, it

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • requestLocationUpdates (LocationManager)
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Reference (javax.naming)
  • Table (org.hibernate.mapping)
    A relational table
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now