[src]

Struct green::PoolConfig

pub struct PoolConfig {
    threads: uint,
    event_loop_factory: fn() -> ~EventLoop<Send>,
}

Configuration of how an M:N pool of schedulers is spawned.

Fields

threads

The number of schedulers (OS threads) to spawn into this M:N pool.

event_loop_factory

A factory function used to create new event loops. If this is not specified then the default event loop factory is used.

Methods

impl PoolConfig

fn new() -> PoolConfig

Returns the default configuration, as determined the environment variables of this process.