EventDriverProcesses

Undocumented in source.

Members

Functions

addRef
void addRef(ProcessID pid)

Increments the reference count of the given resource.

adopt
ProcessID adopt(int system_pid)

Adopt an existing process.

cancelWait
void cancelWait(ProcessID pid, size_t waitId)

Cancel a wait for the given identifier returned by wait.

hasExited
bool hasExited(ProcessID pid)

Returns whether the process has exited yet.

isValid
bool isValid(ProcessID handle)

Determines whether the given process handle is valid.

kill
void kill(ProcessID pid, int signal)

Kill the process using the given signal. Has different effects on different platforms.

rawUserData
void* rawUserData(ProcessID descriptor, size_t size, DataInitializer initialize, DataInitializer destroy)

Low-level user data access. Use userData instead.

releaseRef
bool releaseRef(ProcessID pid)

Decrements the reference count of the given resource.

spawn
Process spawn(string[] args, ProcessStdinFile stdin, ProcessStdoutFile stdout, ProcessStderrFile stderr, string[string] env, ProcessConfig config, string working_dir)

Spawn a child process.

wait
size_t wait(ProcessID pid, ProcessWaitCallback on_process_exit)

Wait for the process to exit.

Properties

userData
ProcessID userData [@property setter]

Retrieves a reference to a user-defined value associated with a descriptor.

Meta