Struct jemalloc_ctl::opt::tcache
source · [−]pub struct tcache;Expand description
Thread-local allocation caching behavior.
Thread-specific caching allows many allocations to be satisfied without performing any thread synchronization, at the cost of increased memory use. This is enabled by default.
Examples
use jemalloc_ctl::opt;
let tcache = opt::tcache::read().unwrap();
println!("thread-local caching: {}", tcache);Implementations
sourceimpl tcache
impl tcache
sourcepub fn mib() -> Result<tcache_mib>
pub fn mib() -> Result<tcache_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 tcache
impl Send for tcache
impl Sync for tcache
impl Unpin for tcache
impl UnwindSafe for tcache
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more