diff options
author | AzureMarker <mark.drobnak@gmail.com> | 2022-02-12 19:14:36 -0800 |
---|---|---|
committer | Mark Drobnak <mark.drobnak@gmail.com> | 2022-03-06 12:31:06 -0800 |
commit | cf928081204e323e831353324b3ef14561fa8e45 (patch) | |
tree | d5dcb6d22627d3688d6c1458fbe6db4fe32b4d69 | |
parent | eef23c7017332352afd02bfaaed8a0576830a9f7 (diff) | |
download | rust-libc-cf928081204e323e831353324b3ef14561fa8e45.tar.gz |
Change wording to "ideal processor" and use "np" suffix
Also adds a get version, to keep consistency.
-rw-r--r-- | src/unix/newlib/horizon/mod.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/unix/newlib/horizon/mod.rs b/src/unix/newlib/horizon/mod.rs index 56d35b1af1..617ae8f6b9 100644 --- a/src/unix/newlib/horizon/mod.rs +++ b/src/unix/newlib/horizon/mod.rs @@ -204,7 +204,15 @@ extern "C" { param: *const sched_param, ) -> ::c_int; - pub fn pthread_attr_setaffinity(attr: *mut ::pthread_attr_t, affinity: ::c_int) -> ::c_int; + pub fn pthread_attr_getidealprocessor_np( + attr: *const ::pthread_attr_t, + ideal_processor: *mut ::c_int, + ) -> ::c_int; + + pub fn pthread_attr_setidealprocessor_np( + attr: *mut ::pthread_attr_t, + ideal_processor: ::c_int, + ) -> ::c_int; pub fn pthread_getpriority() -> ::c_int; |