Skip to content

Commit

Permalink
Auto merge of #2752 - ian-h-chamberlain:horizon/pthread_condattr, r=A…
Browse files Browse the repository at this point in the history
…manieu

Add pthread_condattr_{set,get}clock on Horizon OS

These are supported by this `pthread-3ds` PR: rust3ds/pthread-3ds#16 and are required to compile, notably, `parking_lot_core` for the `armv6k-nintendo-3ds` target.

cc: `@Meziu` `@AzureMarker`
  • Loading branch information
bors committed Apr 12, 2022
2 parents 95aae38 + 77d5ade commit 284335c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/unix/newlib/horizon/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,16 @@ extern "C" {
param: *const ::sched_param,
) -> ::c_int;

pub fn pthread_condattr_getclock(
attr: *const ::pthread_condattr_t,
clock_id: *mut ::clockid_t,
) -> ::c_int;

pub fn pthread_condattr_setclock(
attr: *mut ::pthread_condattr_t,
clock_id: ::clockid_t,
) -> ::c_int;

pub fn pthread_getprocessorid_np() -> ::c_int;

pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t;
Expand Down

0 comments on commit 284335c

Please sign in to comment.