llama_cpp_bindings/
mlock_supported.rs1#[must_use]
2pub fn mlock_supported() -> bool {
3 unsafe { llama_cpp_bindings_sys::llama_supports_mlock() }
4}
5
6#[cfg(test)]
7mod tests {
8 use super::mlock_supported;
9
10 #[test]
11 fn returns_bool_without_panic() {
12 let _supported: bool = mlock_supported();
13 }
14}