Hi!
I am trying to implement some parallel processing of vector elements using all CPU cores. Is there an easy way to do this in Qt? I.e. some function that takes (for example) a functor and a vector as arguments and spawns threads as necessary.
Of course, one could spawn all threads (one for each element) and start them all. Obviously, this will be not the most effective way in terms of performance and memory usage.
P.S. I am trying to port calls of Parallel.ForEach of .NET Framework 4![]()
Bookmarks