mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
allow pump to be falliable
attempt to reduce blocking in net path
This commit is contained in:
parent
b673510747
commit
fcd7bc9bb8
1 changed files with 1 additions and 1 deletions
|
|
@ -145,7 +145,7 @@ pub(crate) fn connection_manager(sid: xous::SID, activity_interval: Arc<AtomicU3
|
||||||
pumping.store(true, Ordering::SeqCst);
|
pumping.store(true, Ordering::SeqCst);
|
||||||
try_send_message(main_cid, Message::new_scalar(ConnectionManagerOpcode::Poll.to_usize().unwrap(), 0, 0, 0, 0)).ok();
|
try_send_message(main_cid, Message::new_scalar(ConnectionManagerOpcode::Poll.to_usize().unwrap(), 0, 0, 0, 0)).ok();
|
||||||
tt.sleep_ms(interval.load(Ordering::SeqCst) as usize).unwrap();
|
tt.sleep_ms(interval.load(Ordering::SeqCst) as usize).unwrap();
|
||||||
send_message(self_cid, Message::new_scalar(PumpOp::Pump.to_usize().unwrap(), 0, 0, 0, 0)).unwrap();
|
try_send_message(self_cid, Message::new_scalar(PumpOp::Pump.to_usize().unwrap(), 0, 0, 0, 0)).ok();
|
||||||
pumping.store(false, Ordering::SeqCst);
|
pumping.store(false, Ordering::SeqCst);
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue