From 84853c696ab8196eb3a20c52950784cacd368b41 Mon Sep 17 00:00:00 2001 From: bunnie Date: Fri, 9 Apr 2021 18:53:41 +0800 Subject: [PATCH] drop message should be non-blocking --- RELEASE-v0.8.md | 2 +- services/com/src/lib.rs | 2 +- services/keyboard/src/lib.rs | 4 ++-- services/llio/src/lib.rs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/RELEASE-v0.8.md b/RELEASE-v0.8.md index 1f0c9abc3..8bf81f8c8 100644 --- a/RELEASE-v0.8.md +++ b/RELEASE-v0.8.md @@ -264,7 +264,7 @@ impl Drop for MyServer { // tell my handler thread to quit let cid = xous::connect(sid).unwrap(); 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();} } diff --git a/services/com/src/lib.rs b/services/com/src/lib.rs index 62a7e402c..ad3beb44e 100644 --- a/services/com/src/lib.rs +++ b/services/com/src/lib.rs @@ -131,7 +131,7 @@ impl Drop for Com { // tell my handler thread to quit let cid = xous::connect(sid).unwrap(); 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();} } diff --git a/services/keyboard/src/lib.rs b/services/keyboard/src/lib.rs index ac728cee1..066892074 100644 --- a/services/keyboard/src/lib.rs +++ b/services/keyboard/src/lib.rs @@ -81,7 +81,7 @@ impl Drop for Keyboard { // tell my handler thread to quit let cid = xous::connect(sid).unwrap(); 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();} } @@ -92,7 +92,7 @@ impl Drop for Keyboard { // tell my handler thread to quit let cid = xous::connect(sid).unwrap(); 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();} } diff --git a/services/llio/src/lib.rs b/services/llio/src/lib.rs index dff5713cb..7cc75ed64 100644 --- a/services/llio/src/lib.rs +++ b/services/llio/src/lib.rs @@ -278,7 +278,7 @@ impl Llio { fn drop_conn(sid: xous::SID) { let cid = xous::connect(sid).unwrap(); 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();} } impl Drop for Llio {