Struct jemalloc_ctl::opt::background_thread
source · pub struct background_thread;
Expand description
jemalloc
’s default initialization behavior for background threads.
jemalloc
automatically spawns background worker threads on
initialization (first jemalloc
call) if this option is enabled. By
default this option is disabled - malloc_conf=background_thread:true
changes its default.
Examples
use jemalloc_ctl::opt;
let background_thread = opt::background_thread::read().unwrap();
println!("background threads since initialization: {}", background_thread);
Implementations§
source§impl background_thread
impl background_thread
sourcepub fn mib() -> Result<background_thread_mib>
pub fn mib() -> Result<background_thread_mib>
Returns Management Information Base (MIB)
This value can be used to access the key without doing string lookup.
sourcepub fn name() -> &'static Name
pub fn name() -> &'static Name
Key crate::keys::Name
.
Auto Trait Implementations§
impl RefUnwindSafe for background_thread
impl Send for background_thread
impl Sync for background_thread
impl Unpin for background_thread
impl UnwindSafe for background_thread
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