Function mlockall
pub unsafe fn mlockall(flags: i32) -> Result<(), i32> ⓘ
Available on crate feature
dep_nc
only.Expand description
Lock memory.
§Examples
let ret = unsafe { nc::mlockall(nc::MCL_CURRENT) };
// We got out-of-memory error in CI environment.
assert!(ret.is_ok() || ret == Err(nc::ENOMEM));