Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 VS2010 中,有没有办法强制 Concurrency::parallel_for() 循环(或 parallel_for_each)串行运行?调试起来会更容易。
如果是这样,怎么做?
谢谢
您可以通过使用基于_DEBUG预处理器符号的定义将所需函数映射到串行(主要在 std 中)或并行版本来实现调试友好的构建。当然这意味着很多努力,你最好学习 GMan 建议的 MT 调试的有用技能
_DEBUG