Skip to content

Commit b4f8459

Browse files
committed
Add nonstandard pthread_getprocessor_id_np function
1 parent 5926f94 commit b4f8459

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/unix/newlib/horizon/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,8 @@ extern "C" {
233233
policy: ::c_int,
234234
param: *const ::sched_param,
235235
) -> ::c_int;
236+
237+
pub fn pthread_getprocessorid_np() -> ::c_int;
236238

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

0 commit comments

Comments
 (0)