Skip to content

Commit 284335c

Browse files
committed
Auto merge of #2752 - ian-h-chamberlain:horizon/pthread_condattr, r=Amanieu
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`
2 parents 95aae38 + 77d5ade commit 284335c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/unix/newlib/horizon/mod.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,16 @@ extern "C" {
250250
param: *const ::sched_param,
251251
) -> ::c_int;
252252

253+
pub fn pthread_condattr_getclock(
254+
attr: *const ::pthread_condattr_t,
255+
clock_id: *mut ::clockid_t,
256+
) -> ::c_int;
257+
258+
pub fn pthread_condattr_setclock(
259+
attr: *mut ::pthread_condattr_t,
260+
clock_id: ::clockid_t,
261+
) -> ::c_int;
262+
253263
pub fn pthread_getprocessorid_np() -> ::c_int;
254264

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

0 commit comments

Comments
 (0)