File tree 3 files changed +18
-0
lines changed
src/unix/linux_like/android
3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -1881,6 +1881,9 @@ fn test_android(target: &str) {
1881
1881
// Added in API level 28, but some tests use level 24.
1882
1882
"syncfs" => true ,
1883
1883
1884
+ // Added in API level 28, but some tests use level 24.
1885
+ "pthread_attr_getinheritsched" | "pthread_attr_setinheritsched" => true ,
1886
+
1884
1887
_ => false ,
1885
1888
}
1886
1889
} ) ;
Original file line number Diff line number Diff line change @@ -3375,8 +3375,10 @@ pthread_atfork
3375
3375
pthread_attr_destroy
3376
3376
pthread_attr_getguardsize
3377
3377
pthread_attr_getstack
3378
+ pthread_attr_getstacksize
3378
3379
pthread_attr_init
3379
3380
pthread_attr_setdetachstate
3381
+ pthread_attr_setguardsize
3380
3382
pthread_attr_setstacksize
3381
3383
pthread_attr_t
3382
3384
pthread_barrierattr_destroy
Original file line number Diff line number Diff line change @@ -1224,6 +1224,9 @@ pub const PTHREAD_MUTEX_RECURSIVE: ::c_int = 1;
1224
1224
pub const PTHREAD_MUTEX_ERRORCHECK : :: c_int = 2 ;
1225
1225
pub const PTHREAD_MUTEX_DEFAULT : :: c_int = PTHREAD_MUTEX_NORMAL ;
1226
1226
1227
+ pub const PTHREAD_EXPLICIT_SCHED : :: c_int = 0 ;
1228
+ pub const PTHREAD_INHERIT_SCHED : :: c_int = 1 ;
1229
+
1227
1230
// stdio.h
1228
1231
pub const RENAME_NOREPLACE : :: c_int = 1 ;
1229
1232
pub const RENAME_EXCHANGE : :: c_int = 2 ;
@@ -3494,6 +3497,16 @@ extern "C" {
3494
3497
attr : * const :: pthread_attr_t ,
3495
3498
guardsize : * mut :: size_t ,
3496
3499
) -> :: c_int ;
3500
+ pub fn pthread_attr_setguardsize ( attr : * mut :: pthread_attr_t , guardsize : :: size_t ) -> :: c_int ;
3501
+ pub fn pthread_attr_getstacksize (
3502
+ attr : * const :: pthread_attr_t ,
3503
+ stacksize : * mut :: size_t ,
3504
+ ) -> :: c_int ;
3505
+ pub fn pthread_attr_getinheritsched (
3506
+ attr : * const :: pthread_attr_t ,
3507
+ flag : * mut :: c_int ,
3508
+ ) -> :: c_int ;
3509
+ pub fn pthread_attr_setinheritsched ( attr : * mut :: pthread_attr_t , flag : :: c_int ) -> :: c_int ;
3497
3510
pub fn sethostname ( name : * const :: c_char , len : :: size_t ) -> :: c_int ;
3498
3511
pub fn sched_get_priority_min ( policy : :: c_int ) -> :: c_int ;
3499
3512
pub fn pthread_condattr_getpshared (
You can’t perform that action at this time.
0 commit comments