|
C++ Concurrency Sandbox
|
#include <iostream>#include <vector>#include <thread>#include <functional>#include <mutex>#include <queue>#include <condition_variable>#include <atomic>Go to the source code of this file.
Classes | |
| struct | PriorityTask |
| A wrapper for a callable task associated with a priority level. More... | |
| class | PriorityThreadPool |
| A pool of worker threads that retrieves tasks based on priority. More... | |
| struct | PaymentTask |
| A Functor simulating a financial processing task. More... | |
Functions | |
| int | main () |
| Main function demonstrating priority-based out-of-order execution. | |
| int main | ( | void | ) |
Main function demonstrating priority-based out-of-order execution.
Definition at line 134 of file Priority.cpp.
References PriorityThreadPool::enqueue().