SetThreadAffinityMask 被忽略......有什么想法吗?
更新:我发现了问题 - 令人尴尬/讽刺的是,它是在错误的线程中调用 SetThreadAffinity() ,而不是主线程(程序启动很混乱......)
现在一切正常,感谢所有帮助! 我对参与我的小型调试会议的每个人都投了赞成票。
Update: I found the problem - embarrassingly/ironically enough it was was calling SetThreadAffinity() in the wrong thread, not the main one (program startup is messy...)
It's all working now, thanks for all the help! I've given everybody an upvote for taking part in my little debug session.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
像这样调用它有什么区别吗?:
您的线程句柄是否具有必要的 访问权限?:
Does calling it like this make any difference?:
Does your thread handle have the necessary access rights?:
尽管我使用该功能已经有几个月了,但我没有遇到任何问题。
以下是您可能需要检查的一些事项:
I haven't had any problems with that function though it has been a couple of months since I used them.
Here are some things you might want to check:
您所做的事情似乎是正确的,您可以尝试 SetThreadIdealProcessor 代替?
What you're doing seems correct, could you perhaps try SetThreadIdealProcessor instead?