Skip to content

Commit

Permalink
Rename "idealprocessor" attr functions to "processorid"
Browse files Browse the repository at this point in the history
  • Loading branch information
AzureMarker committed Mar 6, 2022
1 parent d38b04a commit b62064b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/unix/newlib/horizon/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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;
Expand Down

0 comments on commit b62064b

Please sign in to comment.