SMT concurrency implementation in C++, which lets you run a function(functor) simultaneously on multiple threads, taking jobs from a queue.
- Create a functor, (class) which implements the () operator, that takes exactly one parameter of any type
- Fill up a queue of the type that the functor takes as parameter
- instantiate a concurrent::PARALLEL object with template parameters of the functor and its respective parameter type
- the constructor takes three parameters:
- a functor instantiation
- the job queue
- number of threads