문제

In VS2010, is there a way to force a Concurrency::parallel_for() loop (or parallel_for_each) to run in serial? It would be easier for debugging.

If so, how?

Thanks

도움이 되었습니까?

해결책

You can achieve a debug friendly build by using a define based on the _DEBUG preprocessor symbol to map the required functions to either serial (mostly found in std) or parallel versions. Of course this means a lot of effort, your way better off learn the useful skill of MT debugging as GMan suggested

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top