AUI Framework
develop
Cross-platform base for C++ UI apps
|
Thread pool implementation. More...
#include <AUI/Thread/AThreadPool.h>
AThreadPool::AThreadPool | ( | size_t | size | ) |
size | thread count to initialize. |
> All members, including inherited
auto AThreadPool::parallel | ( | Iterator | begin, |
Iterator | end, | ||
Functor && | functor ) |
Parallels work of some range, grouping tasks per thread (i.e. for 8 items on a 4-core processor each core will process 2 items)
begin | range begin |
end | range end |
functor | a functor of the following signature: Result(Iterator begin, Iterator end)
|
Contents