Struct son_of_grid_engine::SystemInfo [] [src]

pub struct SystemInfo {
    pub scratch_path: PathBuf,
    pub queue_name: String,
    pub job_id: usize,
    pub job_type: JobType,
    pub networking: NetworkInfo,
    // some fields omitted
}

Fields

Methods

impl SystemInfo
[src]

[src]

[src]

Fallback to detectable cpus

[src]

Get a ThreadPool with the workers already pinned to the available cpus

extern crate son_of_grid_engine as sge;

let info = sge::discover();
let pool = info.get_pinned_threadpool();

for i in 0..128 {
    pool.execute(move || {
        println!("{}", i);
    });
}

[src]

[src]

[src]

[src]

Trait Implementations

impl Debug for SystemInfo
[src]

[src]

Formats the value using the given formatter.