Tabnine Logo
DebuggerTester$ExecutingLoop.<init>
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using com.oracle.truffle.tck.DebuggerTester$ExecutingLoop.<init> (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<init>

Popular methods of DebuggerTester$ExecutingLoop

    Popular in Java

    • Reading from database using SQL prepared statement
    • onCreateOptionsMenu (Activity)
    • getOriginalFilename (MultipartFile)
      Return the original filename in the client's filesystem.This may contain path information depending
    • getSharedPreferences (Context)
    • Container (java.awt)
      A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
    • InputStream (java.io)
      A readable source of bytes.Most clients will use input streams that read data from the file system (
    • Format (java.text)
      The base class for all formats. This is an abstract base class which specifies the protocol for clas
    • Dictionary (java.util)
      Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
    • SortedSet (java.util)
      SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
    • Scheduler (org.quartz)
      This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
    • Best IntelliJ plugins
    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