02-21-2016, 08:57 PM
Like worktycho said, futures/promises are the way to go for something like this.
https://github.com/progschj/ThreadPool/b...readPool.h is a pretty good example of an async work queue with futures.
https://github.com/progschj/ThreadPool/b...readPool.h is a pretty good example of an async work queue with futures.