get_num_cores


Description:

[ Version ( since = "2.0.0" ) ]
[ CCode ( cname = "SDL_GetCPUCount" ) ]
public int get_num_cores ()

This function name is misleading, you get logical core count, not physical CPU count


Namespace: SDL.CPU
Package: sdl2



2022 vala-language.org