Skip to content

Commit

Permalink
Expose more pthread bindings for BSD-like OSes.
Browse files Browse the repository at this point in the history
  • Loading branch information
iddm committed Mar 26, 2022
1 parent f00ea00 commit e580478
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/unix/bsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,15 @@ extern "C" {
f: extern "C" fn(*mut ::c_void) -> *mut ::c_void,
value: *mut ::c_void,
) -> ::c_int;
pub fn pthread_setschedparam(
native: ::pthread_t,
policy: ::c_int,
param: *const ::sched_param) -> ::c_int;
pub fn pthread_getschedparam(
native: ::pthread_t,
policy: *mut ::c_int,
param: *mut ::sched_param,
) -> ::c_int;
pub fn acct(filename: *const ::c_char) -> ::c_int;
#[cfg_attr(
all(target_os = "macos", target_arch = "x86"),
Expand Down

0 comments on commit e580478

Please sign in to comment.