summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Polevoy <fx@thefx.co>2017-06-13 12:02:26 +0300
committerVictor Polevoy <v.polevoy@omprussia.ru>2017-06-13 13:54:52 +0300
commit192a245a4735648b527ac8635be5c7445bb569f6 (patch)
treec2464532ef304386b7e6b5abc9415c0d3565248b
parent84c20a1c9bc2ff64944d48db2b76aef77e1ba08e (diff)
downloadrust-libc-192a245a4735648b527ac8635be5c7445bb569f6.tar.gz
Move pthread_setschedprio to not-bsd
-rw-r--r--src/unix/mod.rs2
-rw-r--r--src/unix/notbsd/mod.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/unix/mod.rs b/src/unix/mod.rs
index 56844d7d4e..1727047e6b 100644
--- a/src/unix/mod.rs
+++ b/src/unix/mod.rs
@@ -598,8 +598,6 @@ extern {
parent: Option<unsafe extern fn()>,
child: Option<unsafe extern fn()>) -> ::c_int;
pub fn pthread_exit(value: *mut ::c_void);
- pub fn pthread_setschedprio(native: ::pthread_t,
- priority: ::c_int) -> ::c_int;
pub fn pthread_attr_init(attr: *mut ::pthread_attr_t) -> ::c_int;
pub fn pthread_attr_destroy(attr: *mut ::pthread_attr_t) -> ::c_int;
pub fn pthread_attr_setstacksize(attr: *mut ::pthread_attr_t,
diff --git a/src/unix/notbsd/mod.rs b/src/unix/notbsd/mod.rs
index 03448e8580..cd8f268709 100644
--- a/src/unix/notbsd/mod.rs
+++ b/src/unix/notbsd/mod.rs
@@ -962,6 +962,8 @@ extern {
pshared: ::c_int) -> ::c_int;
pub fn pthread_condattr_getpshared(attr: *const pthread_condattr_t,
pshared: *mut ::c_int) -> ::c_int;
+ pub fn pthread_setschedprio(native: ::pthread_t,
+ priority: ::c_int) -> ::c_int;
pub fn pthread_getschedparam(native: ::pthread_t,
policy: *mut ::c_int,
param: *mut ::sched_param) -> ::c_int;