module deqp.launcher.posix

Posix implementation of program launcher.

Code Map

//! Posix implementation of program launcher.
module deqp.launcher.posix;


//! Used to launch programs and managed launched programs.
class Launcher
{
public:
	this(numThreads: u32) { }
	//! Launch a program cmd with args and pipe input to it's standard input.
	//! Should the maximum number of threads been reached this function will
	//! block until one has completed.
	fn run(cmd: string, args: string[], input: string, console: watt.OutputFileStream, done: void delegate(i32)) { }
	//! Wait for all launched processes to complete.
	fn waitAll() { }
}
class Launcher

Used to launch programs and managed launched programs.

fn run(cmd: string, args: string[], input: string, console: watt.OutputFileStream, done: void delegate(i32))

Launch a program cmd with args and pipe input to it's standard input. Should the maximum number of threads been reached this function will block until one has completed.

Parameters

cmd

The program to launch.

args

Arguments to the program.

input

Pipe the contents to stdin. The program to launch.

console

Used as stdout and stderr.

done

Delegate to be called on program termination.

fn waitAll()

Wait for all launched processes to complete.