|
Size: 614
Comment: Corrected syntax highlighting.
|
Size: 591
Comment: Removed empty Related Functions section, see SGFunctions.
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 20: | Line 20: |
| == Related Functions == |
SDL_GetCPUCount
Use this function to return the number of CPU cores available.
Contents
Syntax
int SDL_GetCPUCount(void)
Return Value
Returns the total number of logical CPU cores. On CPUs that include technologies such as hyperthreading, the number of logical cores may be more than the number of physical cores.
Code Example
printf("Number of logical CPU cores: %d\n", SDL_GetCPUCount());
