Note that there are some explanatory texts on larger screens.

plurals
  1. POA generic C++ library that provides QtConcurrent functionality?
    primarykey
    data
    text
    <p><a href="http://doc.qt.nokia.com/latest/threads-qtconcurrent.html" rel="nofollow noreferrer"><code>QtConcurrent</code></a> is awesome.</p> <p>I'll let the Qt docs speak for themselves:</p> <blockquote> <p>QtConcurrent includes functional programming style APIs for parallel list processing, including a MapReduce and FilterReduce implementation for shared-memory (non-distributed) systems, and classes for managing asynchronous computations in GUI applications.</p> </blockquote> <p>For instance, you give <code>QtConcurrent::map()</code> an iterable sequence and a function that accepts items of the type stored in the sequence, and that function is applied to all the items in the collection. This is done in a multi-threaded manner, with a thread pool equal to the number of logical CPU's on the system. </p> <p>There are plenty of other function in <code>QtConcurrent</code>, like <code>filter()</code>, <code>filteredReduced()</code> etc. The standard CompSci map/reduce functions and the like.</p> <p>I'm totally in love with this, but I'm starting work on an OSS project that will not be using the Qt framework. It's a library, and I don't want to force others to depend on such a large framework like Qt. I'm trying to keep external dependencies to a minimum (it's the decent thing to do).</p> <p>I'm looking for a generic C++ framework that provides the same/similar high-level primitives that <code>QtConcurrent</code> does, and that works with STL collections. AFAIK <code>boost</code> has nothing like this (I may be wrong though). <code>boost::thread</code> is very low-level compared to what I'm looking for (but if the requested lib used <code>boost::thread</code> for the low-level work, that would be great).</p> <p>I know C# has something very similar with their Parallel Extensions so I know this isn't a Qt-only idea.</p> <p>What do you suggest I use?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload