diff options
author | AzureMarker <mark.drobnak@gmail.com> | 2022-02-14 20:54:14 -0800 |
---|---|---|
committer | Mark Drobnak <mark.drobnak@gmail.com> | 2022-03-06 12:31:33 -0800 |
commit | b62064be98cc318d79ae9b19c6642e29130f59ec (patch) | |
tree | a48b74fd56ed934c73dafc501b8dbd00bd9d3daf | |
parent | d38b04a4ea065074379aedf1a11325c49dda8a1d (diff) | |
download | rust-libc-b62064be98cc318d79ae9b19c6642e29130f59ec.tar.gz |
Rename "idealprocessor" attr functions to "processorid"
-rw-r--r-- | src/unix/newlib/horizon/mod.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/unix/newlib/horizon/mod.rs b/src/unix/newlib/horizon/mod.rs index 3967805e1b..5884501daa 100644 --- a/src/unix/newlib/horizon/mod.rs +++ b/src/unix/newlib/horizon/mod.rs @@ -208,14 +208,14 @@ extern "C" { param: *const sched_param, ) -> ::c_int; - pub fn pthread_attr_getidealprocessor_np( + pub fn pthread_attr_getprocessorid_np( attr: *const ::pthread_attr_t, - ideal_processor: *mut ::c_int, + processor_id: *mut ::c_int, ) -> ::c_int; - pub fn pthread_attr_setidealprocessor_np( + pub fn pthread_attr_setprocessorid_np( attr: *mut ::pthread_attr_t, - ideal_processor: ::c_int, + processor_id: ::c_int, ) -> ::c_int; pub fn pthread_getschedparam( @@ -229,7 +229,7 @@ extern "C" { policy: ::c_int, param: *const ::sched_param, ) -> ::c_int; - + pub fn pthread_getprocessorid_np() -> ::c_int; pub fn gethostid() -> ::c_long; |