ohos-libqos-sys 0.1.0

Raw bindings to the QoS (thread priority scheduling) API and Gewu on-device LLM inference APIs of OpenHarmony
Documentation
  • Coverage
  • 68.18%
    15 out of 22 items documented0 out of 0 items with examples
  • Size
  • Source code size: 18.53 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.86 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 13s Average build duration of successful builds.
  • all releases: 13s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • openharmony-rs/ohos-sys
    26 6 8
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • jschwe

OpenHarmony QoS bindings

Low-level bindings to the QoS (Quality of Service) thread scheduling APIs on OpenHarmony, exposed by libqos.so. Lets a thread declare its scheduling priority to the kernel via one of six QoS_Level classes (background, utility, default, user-initiated, deadline-request, user-interactive).

Note: the same libqos.so ships a second, unrelated API surface starting at API level 20 — the Gewu on-device LLM inference engine (OH_QoS_GewuCreateSession, OH_QoS_GewuSubmitRequest, …). It is called "QoS-aware" only in the sense that its internal worker pool cooperates with the QoS scheduler; the API itself takes no QoS_Level and runs on threads owned by the system service. To influence inference priority indirectly, set your own foreground threads to a higher QoS so the scheduler preempts inference when your UI runs.

C API reference:

License

Licensed under the Apache-2.0 license, matching the license of OpenHarmony.