Struct tikv_jemalloc_ctl::opt::narenas
source · pub struct narenas;
Expand description
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 tikv_jemalloc_ctl::opt;
let narenas = opt::narenas::read().unwrap();
println!("number of arenas: {}", narenas);
Implementations§
Auto Trait Implementations§
impl Freeze for narenas
impl RefUnwindSafe for narenas
impl Send for narenas
impl Sync for narenas
impl Unpin for narenas
impl UnwindSafe for narenas
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more