|
dispenso 1.4.1
A library for task parallelism
|
This guide walks through the core features of dispenso with working examples. Each section includes a complete, compilable example that you can build and run.
See the README for installation instructions. Dispenso requires C++14 and CMake 3.12+.
To build the examples:
At the heart of dispenso is the ThreadPool. A thread pool manages a set of worker threads that execute tasks. You can use the global thread pool or create your own:
A TaskSet groups related tasks and provides a way to wait for their completion:
The simplest way to parallelize work is with parallel_for. It distributes loop iterations across available threads.