MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / create_event_bus

Function create_event_bus

nodedb/src/event/bus.rs:180–182  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

178/// Returns `(producers, consumers)` — producers go to Data Plane cores,
179/// consumers go to Event Plane Tokio tasks.
180pub 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.
185pub fn create_event_bus_with_capacity(

Callers 8

spawn_with_tuningMethod · 0.85
start_multicoresMethod · 0.85
start_with_configMethod · 0.85
start_on_dir_refMethod · 0.85
mainFunction · 0.85
core_id_propagatedFunction · 0.85
startMethod · 0.85
startMethod · 0.85

Calls 1

Tested by 3

core_id_propagatedFunction · 0.68
startMethod · 0.68
startMethod · 0.68