|
Corium 1.1.0
High-Performance Zero-Heap C++20 MPSC Application Runtime
|
Managed worker thread using C++20 std::jthread and std::stop_token. More...
#include "corium/Service.hpp"#include "corium/internal/VariantIndex.hpp"#include <chrono>#include <exception>#include <stop_token>#include <thread>
Include dependency graph for BackgroundService.hpp:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| class | corium::BackgroundService< EventVariantType, QueuePolicy, SignalPolicy, StoragePolicy, OverflowPolicy > |
| Multi-threaded background worker service owning a dedicated std::jthread. Integrates incoming event queue with background worker execution and cooperative shutdown via std::stop_token. Zero heap allocations, zero vtables/RTTI. More... | |
Namespaces | |
| namespace | corium |
Typedefs | |
| template<typename EventVariant = DefaultEvents, std::size_t Capacity = 64> | |
| using | corium::ConsumerBackgroundService = BackgroundService< EventVariant, BoundedMpscQueuePolicy< EventVariant, Capacity >, CallbackSignalPolicy, DefaultStoragePolicy > |
| BackgroundService alias for consumer worker threads with configurable queue capacity. | |
| template<typename EventVariant = DefaultEvents> | |
| using | corium::ProducerBackgroundService = BackgroundService< EventVariant, NoQueuePolicy< EventVariant >, NoSignalPolicy, ZeroStoragePolicy > |
| Zero-overhead BackgroundService alias for producer worker threads (zero incoming queue/reactor footprint). | |
Managed worker thread using C++20 std::jthread and std::stop_token.