|
Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
|
Integration of thread_system with external logger and monitoring services. More...
#include <iostream>#include <chrono>#include <thread>#include <vector>#include <kcenon/thread/interfaces/service_container.h>#include <kcenon/thread/interfaces/thread_context.h>#include <kcenon/thread/core/thread_pool.h>#include <kcenon/thread/core/callback_job.h>#include <kcenon/thread/core/log_level.h>#include "mock_logger.h"#include "mock_monitoring.h"
Go to the source code of this file.
Typedefs | |
| using | ILogger = kcenon::common::interfaces::ILogger |
| using | IMonitor = kcenon::common::interfaces::IMonitor |
Functions | |
| void | thread_pool_with_logger_example () |
| Example 1: Thread pool with external logger only. | |
| void | thread_pool_with_monitoring_example () |
| Example 2: Thread pool with external monitoring only. | |
| void | complete_integration_example () |
| Example 3: Complete integration with both logger and monitoring. | |
| void | dynamic_service_example () |
| Example 4: Dynamic service registration. | |
| int | main () |
Integration of thread_system with external logger and monitoring services.
Definition in file integration_example.cpp.
| using ILogger = kcenon::common::interfaces::ILogger |
Definition at line 42 of file integration_example.cpp.
| using IMonitor = kcenon::common::interfaces::IMonitor |
Definition at line 43 of file integration_example.cpp.
| void complete_integration_example | ( | ) |
Example 3: Complete integration with both logger and monitoring.
Definition at line 203 of file integration_example.cpp.
References kcenon::thread::service_container::clear(), kcenon::thread::service_container::global(), and kcenon::thread::service_container::register_singleton().
Referenced by main().


| void dynamic_service_example | ( | ) |
Example 4: Dynamic service registration.
Definition at line 318 of file integration_example.cpp.
References kcenon::thread::service_container::clear(), kcenon::thread::service_container::global(), and kcenon::thread::service_container::register_singleton().
Referenced by main().


| int main | ( | ) |
Definition at line 395 of file integration_example.cpp.
References complete_integration_example(), dynamic_service_example(), thread_pool_with_logger_example(), and thread_pool_with_monitoring_example().

| void thread_pool_with_logger_example | ( | ) |
Example 1: Thread pool with external logger only.
Definition at line 48 of file integration_example.cpp.
References kcenon::thread::service_container::clear(), kcenon::thread::service_container::global(), and kcenon::thread::service_container::register_singleton().
Referenced by main().


| void thread_pool_with_monitoring_example | ( | ) |
Example 2: Thread pool with external monitoring only.
Definition at line 120 of file integration_example.cpp.
References kcenon::thread::service_container::clear(), kcenon::thread::service_container::global(), and kcenon::thread::service_container::register_singleton().
Referenced by main().

