class DebugThreadWorker implements Worker {

  public DebugThreadWorker(WorkerIdentity workerIdentity,
                           final IsolateGrinderProcessRunner runner) {
    m_workerIdentity = workerIdentity;

    m_communicationStream = new PipedOutputStream();
    final InputStream inputStream;

    try {
      inputStream = new PipedInputStream(m_communicationStream);
    }
    catch (IOException e) {
      throw new AssertionError(e);
    }

    m_thread = new Thread(workerIdentity.getName()) {
          public void run() {
            m_result = runner.run(inputStream);
          }
        };
    m_thread.setDaemon(true);
  }

  public  DebugThreadWorker(WorkerIdentity workerIdentity,
                           final IsolateGrinderProcessRunner runner);

}