|
Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
|
Runtime queue capability introspection and adaptive queue selection. More...
#include <kcenon/thread/core/job_queue.h>#include <kcenon/thread/lockfree/lockfree_job_queue.h>#include <kcenon/thread/queue/adaptive_job_queue.h>#include <kcenon/thread/interfaces/queue_capabilities_interface.h>#include <kcenon/thread/interfaces/scheduler_interface.h>#include <kcenon/thread/core/callback_job.h>#include <iostream>#include <memory>#include <string>
Go to the source code of this file.
Classes | |
| class | SmartJobProcessor |
| Smart job processor that adapts to queue capabilities. More... | |
Functions | |
| void | basic_capability_query () |
| Example 1: Basic capability query. | |
| void | convenience_methods () |
| Example 2: Convenience methods. | |
| void | dynamic_capability_check (scheduler_interface *scheduler) |
| Example 3: Dynamic capability check (polymorphic) | |
| void | capability_driven_selection () |
| Example 4: Capability-driven queue selection. | |
| void | capability_comparison () |
| Example 5: Capability comparison table. | |
| int | main () |
Runtime queue capability introspection and adaptive queue selection.
Definition in file queue_capabilities_sample.cpp.
| void basic_capability_query | ( | ) |
Example 1: Basic capability query.
Demonstrates how to directly query capabilities from different queue types.
Definition at line 36 of file queue_capabilities_sample.cpp.
Referenced by main().

| void capability_comparison | ( | ) |
Example 5: Capability comparison table.
Displays a comparison table of all queue implementations.
Definition at line 237 of file queue_capabilities_sample.cpp.
Referenced by main().

| void capability_driven_selection | ( | ) |
Example 4: Capability-driven queue selection.
Shows how to select queue implementation based on requirements.
Definition at line 209 of file queue_capabilities_sample.cpp.
References SmartJobProcessor::has_exact_metrics(), and SmartJobProcessor::log_status().
Referenced by main().


| void convenience_methods | ( | ) |
Example 2: Convenience methods.
Shows how to use the convenience methods instead of get_capabilities().
Definition at line 73 of file queue_capabilities_sample.cpp.
Referenced by main().

| void dynamic_capability_check | ( | scheduler_interface * | scheduler | ) |
Example 3: Dynamic capability check (polymorphic)
Demonstrates how to check capabilities through a base interface pointer.
Definition at line 118 of file queue_capabilities_sample.cpp.
Referenced by main().

| int main | ( | ) |
Definition at line 292 of file queue_capabilities_sample.cpp.
References basic_capability_query(), capability_comparison(), capability_driven_selection(), convenience_methods(), and dynamic_capability_check().
