|
Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
|
Lock-free MPMC queue patterns: SPSC, MPMC, batch ops, and benchmarks. More...
#include "thread_base/lockfree/queues/lockfree_job_queue.h"#include "thread_base/jobs/callback_job.h"#include "logger/core/logger.h"#include <thread>#include <vector>#include <atomic>#include <chrono>#include <random>
Go to the source code of this file.
Functions | |
| void | basic_spsc_example () |
| void | mpmc_example () |
| void | batch_operations_example () |
| void | performance_example () |
| int | main () |
Lock-free MPMC queue patterns: SPSC, MPMC, batch ops, and benchmarks.
Definition in file mpmc_queue_sample.cpp.
| void basic_spsc_example | ( | ) |
Definition at line 32 of file mpmc_queue_sample.cpp.
References kcenon::thread::job::do_work(), kcenon::thread::result< T >::has_value(), and kcenon::thread::result< T >::value().
Referenced by main().


| void batch_operations_example | ( | ) |
Definition at line 170 of file mpmc_queue_sample.cpp.
References kcenon::thread::job::do_work(), and kcenon::thread::result< T >::is_ok().
Referenced by main().


| int main | ( | ) |
Definition at line 287 of file mpmc_queue_sample.cpp.
References basic_spsc_example(), batch_operations_example(), mpmc_example(), and performance_example().

| void mpmc_example | ( | ) |
Definition at line 88 of file mpmc_queue_sample.cpp.
References kcenon::thread::job::do_work(), kcenon::thread::result< T >::has_value(), and kcenon::thread::result< T >::value().
Referenced by main().


| void performance_example | ( | ) |
Definition at line 218 of file mpmc_queue_sample.cpp.
References kcenon::thread::result< T >::has_value().
Referenced by main().

