We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cac16d6 commit 88d12c9Copy full SHA for 88d12c9
1 file changed
src/lib.rs
@@ -208,6 +208,11 @@ pub unsafe extern "C" fn pthread_setschedparam(
208
0
209
}
210
211
+#[no_mangle]
212
+pub unsafe extern "C" fn pthread_getprocessorid_np() -> libc::c_int {
213
+ ctru_sys::svcGetProcessorID()
214
+}
215
+
216
/// Internal struct for storing pthread attribute data
217
/// Must be less than or equal to the size of `libc::pthread_attr_t`. We assert
218
/// this below via static_assertions.
0 commit comments