Expand description
Multicore processing management.
This module provides abstractions for distributing network subscription processing across multiple CPU cores using channel-based message passing. It supports both shared worker pools and dedicated worker pools.
Structs§
- Channel
Dispatcher - A unified thread-safe interface for dispatching subscriptions.
- Dedicated
Worker Thread Spawner - Spawns worker threads dedicated to a single dispatcher, with all threads using the same handler function. Optimizes for single-receiver scenarios by avoiding select overhead.
- Shared
Worker Thread Spawner - Spawns worker threads that share multiple dispatchers, with each thread handling subscriptions from all configured dispatchers using different handlers per dispatcher type.
- Subscription
Stats - Thread-safe statistics tracker for the various stages of subscription processing. All counters use atomic operations for thread safety.
Enums§
- Channel
Mode - Defines the operating mode for the channel dispatcher.
- Channels
- Internal representation of the channel configuration based on chosen operating mode.
Functions§
- pin_
thread_ to_ core - Pins the current thread to a specific CPU core.