Skip to main content

ohos_libqos_sys/
lib.rs

1//! Bindings to the OpenHarmony QoS (Quality of Service) thread scheduling APIs.
2//!
3//! See also the [QoS development guide](https://docs.openharmony.cn/pages/v5.0/en/application-dev/napi/qos-guidelines.md)
4//! and the [Gewu development guide](https://docs.openharmony.cn/pages/v5.0/en/application-dev/napi/gewu-ndk-api-guidelines.md)
5//! for the on-device LLM inference surface that ships in the same library.
6//!
7//! ## Feature flags
8#![cfg_attr(
9    feature = "document-features",
10    cfg_attr(doc, doc = ::document_features::document_features!())
11)]
12#![cfg_attr(docsrs, feature(doc_cfg))]
13
14#[cfg(feature = "api-12")]
15#[link(name = "qos")]
16unsafe extern "C" {}
17
18#[cfg(feature = "api-12")]
19#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
20mod qos_ffi;
21#[cfg(feature = "api-12")]
22#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
23pub use qos_ffi::*;