pthread_cpu_number_np method
! @function pthread_cpu_number_np
@param cpu_number_out The CPU number that the thread was running on at the time of query. This cpu number is in the interval [0, ncpus) (from sysctlbyname("hw.ncpu"))
@result This function returns 0 or the value of errno if an error occurred.
@note Optimizations of per-CPU datastructures based on the result of this function still require synchronization since it is not guaranteed that the thread will still be on the same CPU by the time the function returns.
Implementation
int pthread_cpu_number_np(ffi.Pointer<ffi.Size> cpu_number_out) {
return _pthread_cpu_number_np(cpu_number_out);
}