Debian Codegraph @

third_party/rust/audio_thread_priority/src/mach_sys.rs

raw
1 /* automatically generated by rust-bindgen */
2
3 pub const THREAD_EXTENDED_POLICY: u32 = 1;
4 pub const THREAD_TIME_CONSTRAINT_POLICY: u32 = 2;
5 pub const THREAD_PRECEDENCE_POLICY: u32 = 3;
6 pub type __darwin_natural_t = ::std::os::raw::c_uint;
7 pub type __darwin_mach_port_name_t = __darwin_natural_t;
8 pub type __darwin_mach_port_t = __darwin_mach_port_name_t;
9 pub type boolean_t = ::std::os::raw::c_uint;
10 pub type natural_t = __darwin_natural_t;
11 pub type integer_t = ::std::os::raw::c_int;
12 pub type mach_port_t = __darwin_mach_port_t;
13 pub type thread_t = mach_port_t;
14 pub type thread_policy_flavor_t = natural_t;
15 pub type thread_policy_t = *mut integer_t;
16 #[repr(C)]
17 #[derive(Debug, Copy, Clone)]
18 pub struct thread_extended_policy {
19 pub timeshare: boolean_t,
20 }
21 pub type thread_extended_policy_data_t = thread_extended_policy;
22 #[repr(C)]
23 #[derive(Debug, Copy, Clone)]
24 pub struct thread_time_constraint_policy {
25 pub period: u32,
26 pub computation: u32,
27 pub constraint: u32,
28 pub preemptible: boolean_t,
29 }
30 pub type thread_time_constraint_policy_data_t = thread_time_constraint_policy;
31 #[repr(C)]
32 #[derive(Debug, Copy, Clone)]
33 pub struct thread_precedence_policy {
34 pub importance: integer_t,
35 }
36 pub type thread_precedence_policy_data_t = thread_precedence_policy;