Skip to content

Commit cf92808

Browse files
committed
Change wording to "ideal processor" and use "np" suffix
Also adds a get version, to keep consistency.
1 parent eef23c7 commit cf92808

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/unix/newlib/horizon/mod.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,15 @@ extern "C" {
204204
param: *const sched_param,
205205
) -> ::c_int;
206206

207-
pub fn pthread_attr_setaffinity(attr: *mut ::pthread_attr_t, affinity: ::c_int) -> ::c_int;
207+
pub fn pthread_attr_getidealprocessor_np(
208+
attr: *const ::pthread_attr_t,
209+
ideal_processor: *mut ::c_int,
210+
) -> ::c_int;
211+
212+
pub fn pthread_attr_setidealprocessor_np(
213+
attr: *mut ::pthread_attr_t,
214+
ideal_processor: ::c_int,
215+
) -> ::c_int;
208216

209217
pub fn pthread_getpriority() -> ::c_int;
210218

0 commit comments

Comments
 (0)