Does Qt has an equivalent of C# parallel.foreach?
Solved
General and Desktop
-
C# has a very easy way to run a block in parallel, like this:
Parallel.ForEach(arr, item => { doSomethingWith(item); });
C#'s doc: https://msdn.microsoft.com/en-us/library/system.threading.tasks.parallel.foreach(v=vs.110).aspx
Is there an equivalente in Qt?
-
Hi,
You are likely looking for the QtConcurrent module.