Skip to content

Commit

Permalink
Auto merge of rust-lang#299 - lemonrock:sched_getcpu, r=alexcrichton
Browse files Browse the repository at this point in the history
Adding sched_getcpu() for Android and Linux

None
  • Loading branch information
bors committed Jun 2, 2016
2 parents 45d8589 + ae664ff commit eb637d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/unix/notbsd/android/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,7 @@ extern {
pub fn __sched_cpualloc(count: ::size_t) -> *mut ::cpu_set_t;
pub fn __sched_cpufree(set: *mut ::cpu_set_t);
pub fn __sched_cpucount(setsize: ::size_t, set: *mut cpu_set_t) -> ::c_int;
pub fn sched_getcpu() -> ::c_int;
}

cfg_if! {
Expand Down
1 change: 1 addition & 0 deletions src/unix/notbsd/linux/other/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,7 @@ extern {
pub fn pthread_setaffinity_np(thread: ::pthread_t,
cpusetsize: ::size_t,
cpuset: *const ::cpu_set_t) -> ::c_int;
pub fn sched_getcpu() -> ::c_int;
}

cfg_if! {
Expand Down

0 comments on commit eb637d2

Please sign in to comment.