We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 223bdca commit 268a282Copy full SHA for 268a282
src/unix/notbsd/linux/musl/mod.rs
@@ -254,6 +254,13 @@ extern {
254
pub fn ptrace(request: ::c_int, ...) -> ::c_long;
255
pub fn getpriority(which: ::c_int, who: ::id_t) -> ::c_int;
256
pub fn setpriority(which: ::c_int, who: ::id_t, prio: ::c_int) -> ::c_int;
257
+ pub fn pthread_getaffinity_np(thread: ::pthread_t,
258
+ cpusetsize: ::size_t,
259
+ cpuset: *mut ::cpu_set_t) -> ::c_int;
260
+ pub fn pthread_setaffinity_np(thread: ::pthread_t,
261
262
+ cpuset: *const ::cpu_set_t) -> ::c_int;
263
+ pub fn sched_getcpu() -> ::c_int;
264
}
265
266
cfg_if! {
0 commit comments