Documentation ¶
Overview ¶
Package shpool implements pools for running heterogeneous SHELL processes
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Shell = "/bin/bash"
Functions ¶
This section is empty.
Types ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool orchestrates the work to be done.
type Process ¶
type Process struct { // number of cpus used by this command. // This will be available as the environment variable 'CPUs' in the running process. CPUs int // the command to run in the shell. Command string // Prefix is prepended to the stderr and stdout of this command. // This will be available as the env var 'Prefix' in the running process. Prefix string }
Process is filled by the user by specifying the command and the number of CPUs that command will utilize.
Click to show internal directories.
Click to hide internal directories.