mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-16 03:15:27 +01:00
Conan can still be used, but it is fully optional. This should help packagers a lot. Signed-off-by: Edgar <Edgar@AnotherFoxGuy.com>
18 lines
319 B
Markdown
18 lines
319 B
Markdown
ThreadPool
|
|
==========
|
|
|
|
A simple C++11 Thread Pool implementation.
|
|
|
|
Basic usage:
|
|
```c++
|
|
// create thread pool with 4 worker threads
|
|
ThreadPool pool(4);
|
|
|
|
// enqueue and store future
|
|
auto result = pool.enqueue([](int answer) { return answer; }, 42);
|
|
|
|
// get result from future
|
|
std::cout << result.get() << std::endl;
|
|
|
|
```
|