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 51
51
pub sun_family: :: sa_family_t,
52
52
pub sun_path: [ :: c_char; 104usize ] ,
53
53
}
54
+
55
+ pub struct sched_param {
56
+ pub sched_priority: :: c_int,
57
+ }
54
58
}
55
59
56
60
pub const SIGEV_NONE : :: c_int = 1 ;
@@ -190,7 +194,15 @@ extern "C" {
190
194
value : * mut :: c_void ,
191
195
) -> :: c_int ;
192
196
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 ;
194
206
195
207
pub fn pthread_attr_setaffinity ( attr : * mut :: pthread_attr_t , affinity : :: c_int ) -> :: c_int ;
196
208
You can’t perform that action at this time.
0 commit comments