mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-20 09:03:28 +00:00
drop message should be non-blocking
This commit is contained in:
parent
2916eb3775
commit
84853c696a
4 changed files with 5 additions and 5 deletions
|
|
@ -264,7 +264,7 @@ impl Drop for MyServer {
|
||||||
// tell my handler thread to quit
|
// tell my handler thread to quit
|
||||||
let cid = xous::connect(sid).unwrap();
|
let cid = xous::connect(sid).unwrap();
|
||||||
xous::send_message(cid,
|
xous::send_message(cid,
|
||||||
Message::new_blocking_scalar(api::Callback::Drop.to_usize().unwrap(), 0, 0, 0, 0)).unwrap();
|
Message::new_scalar(api::Callback::Drop.to_usize().unwrap(), 0, 0, 0, 0)).unwrap();
|
||||||
unsafe{xous::disconnect(cid).unwrap();}
|
unsafe{xous::disconnect(cid).unwrap();}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -131,7 +131,7 @@ impl Drop for Com {
|
||||||
// tell my handler thread to quit
|
// tell my handler thread to quit
|
||||||
let cid = xous::connect(sid).unwrap();
|
let cid = xous::connect(sid).unwrap();
|
||||||
xous::send_message(cid,
|
xous::send_message(cid,
|
||||||
Message::new_blocking_scalar(api::Callback::Drop.to_usize().unwrap(), 0, 0, 0, 0)).unwrap();
|
Message::new_scalar(api::Callback::Drop.to_usize().unwrap(), 0, 0, 0, 0)).unwrap();
|
||||||
unsafe{xous::disconnect(cid).unwrap();}
|
unsafe{xous::disconnect(cid).unwrap();}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@ impl Drop for Keyboard {
|
||||||
// tell my handler thread to quit
|
// tell my handler thread to quit
|
||||||
let cid = xous::connect(sid).unwrap();
|
let cid = xous::connect(sid).unwrap();
|
||||||
send_message(cid,
|
send_message(cid,
|
||||||
Message::new_blocking_scalar(api::Callback::Drop.to_usize().unwrap(), 0, 0, 0, 0)).unwrap();
|
Message::new_scalar(api::Callback::Drop.to_usize().unwrap(), 0, 0, 0, 0)).unwrap();
|
||||||
unsafe{xous::disconnect(cid).unwrap();}
|
unsafe{xous::disconnect(cid).unwrap();}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -92,7 +92,7 @@ impl Drop for Keyboard {
|
||||||
// tell my handler thread to quit
|
// tell my handler thread to quit
|
||||||
let cid = xous::connect(sid).unwrap();
|
let cid = xous::connect(sid).unwrap();
|
||||||
send_message(cid,
|
send_message(cid,
|
||||||
Message::new_blocking_scalar(api::Callback::Drop.to_usize().unwrap(), 0, 0, 0, 0)).unwrap();
|
Message::new_scalar(api::Callback::Drop.to_usize().unwrap(), 0, 0, 0, 0)).unwrap();
|
||||||
unsafe{xous::disconnect(cid).unwrap();}
|
unsafe{xous::disconnect(cid).unwrap();}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -278,7 +278,7 @@ impl Llio {
|
||||||
fn drop_conn(sid: xous::SID) {
|
fn drop_conn(sid: xous::SID) {
|
||||||
let cid = xous::connect(sid).unwrap();
|
let cid = xous::connect(sid).unwrap();
|
||||||
xous::send_message(cid,
|
xous::send_message(cid,
|
||||||
Message::new_blocking_scalar(EventCallback::Drop.to_usize().unwrap(), 0, 0, 0, 0)).unwrap();
|
Message::new_scalar(EventCallback::Drop.to_usize().unwrap(), 0, 0, 0, 0)).unwrap();
|
||||||
unsafe{xous::disconnect(cid).unwrap();}
|
unsafe{xous::disconnect(cid).unwrap();}
|
||||||
}
|
}
|
||||||
impl Drop for Llio {
|
impl Drop for Llio {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue