1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
//! Arena operations. option! { narenas[ str: b"arenas.narenas\0", non_str: 2 ] => libc::c_uint | ops: r | docs: /// Current limit on the number of arenas. /// /// # Examples /// /// ``` /// # extern crate jemallocator; /// # extern crate jemalloc_ctl; /// # /// # #[global_allocator] /// # static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc; /// # /// # fn main() { /// use jemalloc_ctl::arenas; /// println!("number of arenas: {}", arenas::narenas::read().unwrap()); /// /// let arenas_mib = arenas::narenas::mib().unwrap(); /// println!("number of arenas: {}", arenas_mib.read().unwrap()); /// # } /// ``` mib_docs: /// See [`narenas`]. }