Browse Source

Implement pthread_getprocessorid_np

pull/10/head
AzureMarker 3 years ago
parent
commit
88d12c91ad
No known key found for this signature in database
GPG Key ID: 47A133F3BF9D03D3
  1. 5
      src/lib.rs

5
src/lib.rs

@ -208,6 +208,11 @@ pub unsafe extern "C" fn pthread_setschedparam(
0 0
} }
#[no_mangle]
pub unsafe extern "C" fn pthread_getprocessorid_np() -> libc::c_int {
ctru_sys::svcGetProcessorID()
}
/// Internal struct for storing pthread attribute data /// Internal struct for storing pthread attribute data
/// Must be less than or equal to the size of `libc::pthread_attr_t`. We assert /// Must be less than or equal to the size of `libc::pthread_attr_t`. We assert
/// this below via static_assertions. /// this below via static_assertions.

Loading…
Cancel
Save