Debian Codegraph @

debian/missing-sources/libc/src/new/apple/libpthread/pthread_/qos.rs

raw
1 //! Header: `pthread/qos.h`
2 //!
3 //! <https://github.com/apple-oss-distributions/libpthread/blob/main/include/pthread/qos.h>
4
5 use crate::prelude::*;
6 pub use crate::sys::qos::*;
7
8 extern "C" {
9 pub fn pthread_attr_set_qos_class_np(
10 attr: *mut crate::pthread_attr_t,
11 class: qos_class_t,
12 priority: c_int,
13 ) -> c_int;
14 pub fn pthread_attr_get_qos_class_np(
15 attr: *mut crate::pthread_attr_t,
16 class: *mut qos_class_t,
17 priority: *mut c_int,
18 ) -> c_int;
19 pub fn pthread_set_qos_class_self_np(class: qos_class_t, priority: c_int) -> c_int;
20 pub fn pthread_get_qos_class_np(
21 thread: crate::pthread_t,
22 class: *mut qos_class_t,
23 priority: *mut c_int,
24 ) -> c_int;
25 }