Wiki Page Content

Differences between revisions 6 and 7
Revision 6 as of 2016-05-14 22:11:37
Size: 653
Comment: Added Version section.
Revision 7 as of 2016-05-14 22:13:36
Size: 955
Comment: Added empty Remarks section.
Deletions are marked like this. Additions are marked like this.
Line 21: Line 21:
== Remarks ==
''You can add useful comments here''

##Leave this section as-is unless you have a remark to put in. In that case, replace ''You can add useful comments here'' with your remark(s) following the Style Guide instructions. Leave the rest of the markup alone and delete this comment.

SDL_GetCPUCount

Use this function to return the number of CPU cores available.

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());

Remarks

You can add useful comments here

Version

This function is available since SDL 2.0.0.


CategoryAPI, CategoryCPU

None: SDL_GetCPUCount (last edited 2016-11-28 21:40:11 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit