Skip to content

Commit fbec8eb

Browse files
iddmVictor Polevoy
authored andcommitted
Move pthread_setschedprio into the linux submodule
1 parent a75fef0 commit fbec8eb

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/unix/notbsd/linux/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -923,6 +923,8 @@ extern {
923923
serv: *mut ::c_char,
924924
sevlen: ::socklen_t,
925925
flags: ::c_int) -> ::c_int;
926+
pub fn pthread_setschedprio(native: ::pthread_t,
927+
priority: ::c_int) -> ::c_int;
926928
pub fn prlimit(pid: ::pid_t, resource: ::c_int, new_limit: *const ::rlimit,
927929
old_limit: *mut ::rlimit) -> ::c_int;
928930
pub fn prlimit64(pid: ::pid_t,

src/unix/notbsd/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -962,9 +962,6 @@ extern {
962962
pshared: ::c_int) -> ::c_int;
963963
pub fn pthread_condattr_getpshared(attr: *const pthread_condattr_t,
964964
pshared: *mut ::c_int) -> ::c_int;
965-
#[cfg(not(target_os = "android"))]
966-
pub fn pthread_setschedprio(native: ::pthread_t,
967-
priority: ::c_int) -> ::c_int;
968965
pub fn pthread_getschedparam(native: ::pthread_t,
969966
policy: *mut ::c_int,
970967
param: *mut ::sched_param) -> ::c_int;

0 commit comments

Comments
 (0)