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

Function eventfd_wake_on_push

nodedb-bridge/src/async_bridge.rs:343–353  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

341
342 #[test]
343 fn eventfd_wake_on_push() {
344 let bridge: BridgeChannel<u64, u64> = BridgeChannel::new(16, 16).unwrap();
345 let mut control = bridge.control;
346 let data = bridge.data;
347
348 control.try_send_request(1).unwrap();
349
350 // Consumer wake fd should be signaled.
351 let count = data.req_wake.consumer_wake.try_read().unwrap();
352 assert!(count > 0);
353 }
354
355 #[test]
356 fn drain_responses_signals_producer() {

Callers

nothing calls this directly

Calls 2

try_send_requestMethod · 0.80
try_readMethod · 0.80

Tested by

no test coverage detected