Skip to content
Snippets Groups Projects
Commit cb03e623 authored by Victor Polevoy's avatar Victor Polevoy Committed by Victor Polevoy
Browse files

Add schedule params & priority pthread functions

parent 5e208ed9
No related branches found
No related tags found
No related merge requests found
......@@ -598,6 +598,14 @@ extern {
parent: Option<unsafe extern fn()>,
child: Option<unsafe extern fn()>) -> ::c_int;
pub fn pthread_exit(value: *mut ::c_void);
pub fn pthread_getschedparam(native: ::pthread_t,
policy: *mut ::c_int,
param: *mut ::sched_param) -> ::c_int;
pub fn pthread_setschedparam(native: ::pthread_t,
policy: ::c_int,
param: *const ::sched_param) -> ::c_int;
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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment