Corium 1.1.0
High-Performance Zero-Heap C++20 MPSC Application Runtime
Loading...
Searching...
No Matches
Service.hpp File Reference

Lightweight thread-safe background service interface. More...

+ Include dependency graph for Service.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  corium::Service< EventVariantType, QueuePolicy, SignalPolicy, StoragePolicy, OverflowPolicy >
 Non-allocating base class for synchronous or thread-agnostic services. Provides event producing (posting to main EventBus) and event consuming (receiving events into dedicated incoming bus). Does NOT own a thread. Zero heap allocations, zero vtables/RTTI. More...
 

Namespaces

namespace  corium
 

Typedefs

template<typename EventVariant = DefaultEvents, std::size_t Capacity = 64>
using corium::ConsumerService = Service< EventVariant, BoundedMpscQueuePolicy< EventVariant, Capacity >, CallbackSignalPolicy, DefaultStoragePolicy >
 Explicit Service alias for consumer services with configurable incoming event queue capacity.
 
template<typename EventVariant = DefaultEvents>
using corium::ProducerService = Service< EventVariant, NoQueuePolicy< EventVariant >, NoSignalPolicy, ZeroStoragePolicy >
 Zero-overhead Service alias for pure producer services (no incoming event queue/reactor allocations).
 

Detailed Description

Lightweight thread-safe background service interface.