I am working on a C ++ project that needs to run many jobs in threadpool. Jobs are error prone, which means I need to know how each job completes after it is completed. Being a Java programmer for the most part, I like the idea of using "futures" or a similar paradigm, akin to the various classes in the Java util.concurrent package.
I have two questions: firstly, something like this already exists for C ++ (I did not find anything in Boost, but maybe I don't look complicated enough); and secondly, is that even a reasonable idea for C ++?
I found a brief example of what I'm trying to do here:
http://www.boostcookbook.com/Recipe:/1234841
Does this approach make sense?
source
share