How can I get the number of logical CPUs on WinRT?

后端 未结 3 1489
离开以前
离开以前 2021-01-13 20:48

I\'m trying to compile Boost 1.49.0 for WinRT. I\'ve got it down to one method: GetSystemInfo(), which is used in boost::thread::hardware_concurrency() to obtain the number

3条回答
  •  长情又很酷
    2021-01-13 21:26

    You can call the Windows API function GetNativeSystemInfo, which is permitted in Metro style apps.

提交回复
热议问题