Skip to content

Commit 77d5ade

Browse files
Add pthread_condattr_{set,get}clock on Horizon OS
1 parent 53f78cd commit 77d5ade

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)