Tabnine Logo
DebuggerTester$ExecutingLoop
Code IndexAdd Tabnine to your IDE (free)

How to use
DebuggerTester$ExecutingLoop
in
com.oracle.truffle.tck

Best Java code snippets using com.oracle.truffle.tck.DebuggerTester$ExecutingLoop (Showing top 2 results out of 315)

origin: org.graalvm.truffle/truffle-tck

/**
 * Constructs a new debugger tester instance with a pre-set context builder.
 *
 * @param contextBuilder a pre-set context builder. Only out and err streams are set on this
 *            builder prior the {@link Context} instance creation.
 *
 * @see #DebuggerTester()
 * @since 0.31
 */
public DebuggerTester(Context.Builder contextBuilder) {
  this.newEvent = new ArrayBlockingQueue<>(1);
  this.executing = new Semaphore(0);
  this.initialized = new Semaphore(0);
  final AtomicReference<Engine> engineRef = new AtomicReference<>();
  final AtomicReference<Throwable> error = new AtomicReference<>();
  this.executingLoop = new ExecutingLoop(contextBuilder, engineRef, error);
  this.evalThread = new Thread(executingLoop);
  this.evalThread.start();
  try {
    initialized.acquire();
  } catch (InterruptedException e) {
    throw new AssertionError(e);
  }
  this.engine = engineRef.get();
  if (error.get() != null) {
    throw new AssertionError("Engine initialization failed", error.get());
  }
}
origin: com.oracle.truffle/truffle-tck

/**
 * Constructs a new debugger tester instance with a pre-set context builder.
 *
 * @param contextBuilder a pre-set context builder. Only out and err streams are set on this
 *            builder prior the {@link Context} instance creation.
 *
 * @see #DebuggerTester()
 * @since 0.31
 */
public DebuggerTester(Context.Builder contextBuilder) {
  this.newEvent = new ArrayBlockingQueue<>(1);
  this.executing = new Semaphore(0);
  this.initialized = new Semaphore(0);
  final AtomicReference<Engine> engineRef = new AtomicReference<>();
  final AtomicReference<Throwable> error = new AtomicReference<>();
  this.executingLoop = new ExecutingLoop(contextBuilder, engineRef, error);
  this.evalThread = new Thread(executingLoop);
  this.evalThread.start();
  try {
    initialized.acquire();
  } catch (InterruptedException e) {
    throw new AssertionError(e);
  }
  this.engine = engineRef.get();
  if (error.get() != null) {
    throw new AssertionError("Engine initialization failed", error.get());
  }
}
com.oracle.truffle.tckDebuggerTester$ExecutingLoop

Most used methods

  • <init>

Popular in Java

  • Reactive rest calls using spring rest template
  • getResourceAsStream (ClassLoader)
  • startActivity (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • ImageIO (javax.imageio)
  • BoxLayout (javax.swing)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now