@@ -2000,6 +2000,8 @@ pub const PTHREAD_PRIO_INHERIT: ::c_int = 1;
2000
2000
pub const PTHREAD_PRIO_PROTECT : :: c_int = 2 ;
2001
2001
pub const PTHREAD_PROCESS_PRIVATE : :: c_int = 0 ;
2002
2002
pub const PTHREAD_PROCESS_SHARED : :: c_int = 1 ;
2003
+ pub const PTHREAD_INHERIT_SCHED : :: c_int = 0 ;
2004
+ pub const PTHREAD_EXPLICIT_SCHED : :: c_int = 1 ;
2003
2005
pub const __SIZEOF_PTHREAD_COND_T: usize = 48 ;
2004
2006
2005
2007
pub const RENAME_NOREPLACE : :: c_uint = 1 ;
@@ -5179,6 +5181,18 @@ extern "C" {
5179
5181
guardsize : * mut :: size_t ,
5180
5182
) -> :: c_int ;
5181
5183
pub fn pthread_attr_setguardsize ( attr : * mut :: pthread_attr_t , guardsize : :: size_t ) -> :: c_int ;
5184
+ pub fn pthread_attr_getinheritsched ( attr : * const :: pthread_attr_t , inheritsched : * mut :: c_int ) -> :: c_int ;
5185
+ pub fn pthread_attr_setinheritsched ( attr : * mut :: pthread_attr_t , inheritsched : :: c_int ) -> :: c_int ;
5186
+ pub fn pthread_attr_getschedpolicy ( attr : * const :: pthread_attr_t , policy : * mut :: c_int ) -> :: c_int ;
5187
+ pub fn pthread_attr_setschedpolicy ( attr : * mut :: pthread_attr_t , policy : :: c_int ) -> :: c_int ;
5188
+ pub fn pthread_attr_getschedparam (
5189
+ attr : * const :: pthread_attr_t ,
5190
+ param : * mut :: sched_param ,
5191
+ ) -> :: c_int ;
5192
+ pub fn pthread_attr_setschedparam (
5193
+ attr : * mut :: pthread_attr_t ,
5194
+ param : * const :: sched_param ,
5195
+ ) -> :: c_int ;
5182
5196
pub fn sethostname ( name : * const :: c_char , len : :: size_t ) -> :: c_int ;
5183
5197
pub fn sched_get_priority_min ( policy : :: c_int ) -> :: c_int ;
5184
5198
pub fn pthread_condattr_getpshared (
0 commit comments