Skip to content

Commit 88d12c9

Browse files
committed
Implement pthread_getprocessorid_np
1 parent cac16d6 commit 88d12c9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,11 @@ pub unsafe extern "C" fn pthread_setschedparam(
208208
0
209209
}
210210

211+
#[no_mangle]
212+
pub unsafe extern "C" fn pthread_getprocessorid_np() -> libc::c_int {
213+
ctru_sys::svcGetProcessorID()
214+
}
215+
211216
/// Internal struct for storing pthread attribute data
212217
/// Must be less than or equal to the size of `libc::pthread_attr_t`. We assert
213218
/// this below via static_assertions.

0 commit comments

Comments
 (0)