Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to detect Soft-RT cores #18

Open
forderud opened this issue Mar 13, 2023 · 1 comment
Open

Document how to detect Soft-RT cores #18

forderud opened this issue Mar 13, 2023 · 1 comment
Assignees

Comments

@forderud
Copy link
Contributor

Can you please extend the Soft-RT documentation to also cover run-time detection of real-time cores?

I'm already retrieving what I believe is this information using:

unsigned long buffer_size = 0;
GetSystemCpuSetInformation(nullptr, 0, &buffer_size, GetCurrentProcess(), 0);
std::vector<SYSTEM_CPU_SET_INFORMATION> scsi(buffer_size/sizeof(SYSTEM_CPU_SET_INFORMATION));
GetSystemCpuSetInformation(scsi.data(), buffer_size, &buffer_size, GetCurrentProcess(), 0);
// information in scsi array

However, the SYSTEM_CPU_SET_INFORMATION documentation doesn't state if I should use the Allocated or the RealTime field for real-time core detection. It would be great if this could be clarified, so that I can start writing production-quality code against Soft-RT.

@forderud
Copy link
Contributor Author

Gentle reminder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants