Creates the event bus: one ring buffer pair per Data Plane core. Returns `(producers, consumers)` — producers go to Data Plane cores, consumers go to Event Plane Tokio tasks.
(num_cores: usize)
| 178 | /// Returns `(producers, consumers)` — producers go to Data Plane cores, |
| 179 | /// consumers go to Event Plane Tokio tasks. |
| 180 | pub fn create_event_bus(num_cores: usize) -> (Vec<EventProducer>, Vec<EventConsumerRx>) { |
| 181 | create_event_bus_with_capacity(num_cores, DEFAULT_EVENT_BUS_CAPACITY) |
| 182 | } |
| 183 | |
| 184 | /// Creates the event bus with a custom ring buffer capacity. |
| 185 | pub fn create_event_bus_with_capacity( |