Skip to content

Commit e0db052

Browse files
author
Victor Polevoy
committed
Move pthread_setschedprio to not-bsd
1 parent 84c20a1 commit e0db052

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/unix/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,8 +598,6 @@ extern {
598598
parent: Option<unsafe extern fn()>,
599599
child: Option<unsafe extern fn()>) -> ::c_int;
600600
pub fn pthread_exit(value: *mut ::c_void);
601-
pub fn pthread_setschedprio(native: ::pthread_t,
602-
priority: ::c_int) -> ::c_int;
603601
pub fn pthread_attr_init(attr: *mut ::pthread_attr_t) -> ::c_int;
604602
pub fn pthread_attr_destroy(attr: *mut ::pthread_attr_t) -> ::c_int;
605603
pub fn pthread_attr_setstacksize(attr: *mut ::pthread_attr_t,

src/unix/notbsd/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -962,6 +962,8 @@ 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+
pub fn pthread_setschedprio(native: ::pthread_t,
966+
priority: ::c_int) -> ::c_int;
965967
pub fn pthread_getschedparam(native: ::pthread_t,
966968
policy: *mut ::c_int,
967969
param: *mut ::sched_param) -> ::c_int;

0 commit comments

Comments
 (0)