pub fn granularity() -> Result<usize, Error> {
        let a = GRANULARITY.load(Ordering::Relaxed);
        if a != 0 {
            Ok(a)
        } else {
            let b = unsafe { vm_granularity() };
            if let Ok(a) = b {
                GRANULARITY.store(a, Ordering::Relaxed);
            }
            b
        }
    }
/// Returns the virtual memory mapping granularity of the underlying
/// operating system. On Unix this is the page size, which is typically
/// 4096 bytes. On Windows this is the allocation granularity, which is
/// typically 65536 bytes.
Returns the virtual memory mapping granularity of the underlying
operating system. On Unix this is the page size, which is typically
4096 bytes. On Windows this is the allocation granularity, which is
typically 65536 bytes.
Returns the virtual memory mapping granularity of the underlying operating system . On Unix this is the page size which is typically 4096 bytes . On Windows this is the allocation granularity which is typically 65536 bytes .
pub fn granularity() -> Result<usize, Error> {
        let a = GRANULARITY.load(Ordering::Relaxed);
        if a != 0 {
            Ok(a)
        } else {
            let b = unsafe { vm_granularity() };
            if let Ok(a) = b {
                GRANULARITY.store(a, Ordering::Relaxed);
            }
            b
        }
    }
pub fn granularity ( ) -> Result < usize , Error > { let a = GRANULARITY . load ( Ordering :: Relaxed ) ; if a != 0 { Ok ( a ) } else { let b = unsafe { vm_granularity ( ) } ; if let Ok ( a ) = b { GRANULARITY . store ( a , Ordering :: Relaxed ) ; } b } }
Returns the virtual memory mapping granularity of the underlying
operating system.
Returns the virtual memory mapping granularity of the underlying operating system .