Struct jemalloc_ctl::opt::NArenas [] [src]

pub struct NArenas(_);

A type providing access to the maximum number of arenas to use for automatic multiplexing of threads and arenas.

The default is four times the number of CPUs, or one if there is a single CPU.

Examples

use jemalloc_ctl::opt::NArenas;

let narenas = NArenas::new().unwrap();

println!("number of arenas: {}", narenas.get().unwrap());

Methods

impl NArenas
[src]

[src]

Returns a new NArenas.

[src]

Returns the maximum number of arenas.

Trait Implementations

impl Copy for NArenas
[src]

impl Clone for NArenas
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more