Code snippet in one of "CPUSets for game development" sections can be misleading #3025
Labels
doc-bug
feedback is about something that is out of date, unclear, confusing, or broken in the article
games/tech
Pri2
uwp/prod
This feedback concerns the SetThreadSelectedCpuSets section of the content. The documentation for a SYSTEM_CPU_SET_INFORMATION structure states:
Despite that, the code snippet in the aforementioned section clearly indexes the structure directly, therefore breaking the contract established by the documentation:
This could be easily overlooked and copied directly to the user code, potentially leading to compatibility issues if Microsoft ever expands this structure or adds additional information types other than
CpuSetInformation
.Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: