File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 5151 pub sun_family: :: sa_family_t,
5252 pub sun_path: [ :: c_char; 104usize ] ,
5353 }
54+
55+ pub struct sched_param {
56+ pub sched_priority: :: c_int,
57+ }
5458}
5559
5660pub const SIGEV_NONE : :: c_int = 1 ;
@@ -190,7 +194,15 @@ extern "C" {
190194 value : * mut :: c_void ,
191195 ) -> :: c_int ;
192196
193- pub fn pthread_attr_setpriority ( attr : * mut :: pthread_attr_t , priority : :: c_int ) -> :: c_int ;
197+ pub fn pthread_attr_getschedparam (
198+ attr : * const :: pthread_attr_t ,
199+ param : * mut sched_param ,
200+ ) -> :: c_int ;
201+
202+ pub fn pthread_attr_setschedparam (
203+ attr : * mut :: pthread_attr_t ,
204+ param : * const sched_param ,
205+ ) -> :: c_int ;
194206
195207 pub fn pthread_attr_setaffinity ( attr : * mut :: pthread_attr_t , affinity : :: c_int ) -> :: c_int ;
196208
You can’t perform that action at this time.
0 commit comments