mirror of
https://github.com/cookiengineer/audacity
synced 2026-04-01 03:54:47 +02:00
Allow building Tenacity without Conan
Conan can still be used, but it is fully optional. This should help packagers a lot. Signed-off-by: Edgar <Edgar@AnotherFoxGuy.com>
This commit is contained in:
17
lib-src/ThreadPool/README.md
Normal file
17
lib-src/ThreadPool/README.md
Normal file
@@ -0,0 +1,17 @@
|
||||
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;
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user