congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (Timer)
  • addToBackStack (FragmentTransaction)
  • setScale (BigDecimal)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • JTextField (javax.swing)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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