From b62064be98cc318d79ae9b19c6642e29130f59ec Mon Sep 17 00:00:00 2001 From: AzureMarker Date: Mon, 14 Feb 2022 20:54:14 -0800 Subject: Rename "idealprocessor" attr functions to "processorid" --- src/unix/newlib/horizon/mod.rs | 10 +++++----- 1 file 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; -- cgit v1.2.1