add Send trait to the xous Message type

This commit is contained in:
bunnie 2023-09-26 15:09:13 +08:00
parent b8125a5b1f
commit 11b6ca1266
2 changed files with 2 additions and 0 deletions

View file

@ -7,6 +7,7 @@ pub struct Envelope {
pub sender: MessageSender, pub sender: MessageSender,
pub body: Message, pub body: Message,
} }
unsafe impl Send for Envelope {}
impl Envelope { impl Envelope {
pub fn to_usize(&self) -> [usize; 7] { pub fn to_usize(&self) -> [usize; 7] {

View file

@ -132,6 +132,7 @@ pub enum Message {
Scalar(ScalarMessage), Scalar(ScalarMessage),
BlockingScalar(ScalarMessage), BlockingScalar(ScalarMessage),
} }
unsafe impl Send for Message {}
impl Message { impl Message {
pub fn new_scalar( pub fn new_scalar(