|
C++ Concurrency Sandbox
|
A high-performance, template-based Thread Pool with Future support. More...
#include <iostream>#include <vector>#include <thread>#include <functional>#include <mutex>#include <queue>#include <condition_variable>#include <atomic>#include <future>Go to the source code of this file.
Classes | |
| class | ThreadPool_Lambda |
Typedefs | |
| typedef std::function< void()> | Task |
Functions | |
| bool | uploadFile (std::string name) |
| Simulates a file upload operation. | |
| int | main () |
| Main function demonstrating ThreadPool_Lambda usage with futures. | |
A high-performance, template-based Thread Pool with Future support.
Definition in file ThreadPool_Lambda.cpp.
| typedef std::function<void()> Task |
Definition at line 22 of file ThreadPool_Lambda.cpp.
| int main | ( | void | ) |
Main function demonstrating ThreadPool_Lambda usage with futures.
Definition at line 133 of file ThreadPool_Lambda.cpp.
References ThreadPool_Lambda::enqueue(), and uploadFile().
| bool uploadFile | ( | std::string | name | ) |
Simulates a file upload operation.
| name | Name of the file to upload. |
Definition at line 124 of file ThreadPool_Lambda.cpp.
Referenced by main().