mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
add Send trait to the xous Message type
This commit is contained in:
parent
b8125a5b1f
commit
11b6ca1266
2 changed files with 2 additions and 0 deletions
|
|
@ -7,6 +7,7 @@ pub struct Envelope {
|
|||
pub sender: MessageSender,
|
||||
pub body: Message,
|
||||
}
|
||||
unsafe impl Send for Envelope {}
|
||||
|
||||
impl Envelope {
|
||||
pub fn to_usize(&self) -> [usize; 7] {
|
||||
|
|
|
|||
|
|
@ -132,6 +132,7 @@ pub enum Message {
|
|||
Scalar(ScalarMessage),
|
||||
BlockingScalar(ScalarMessage),
|
||||
}
|
||||
unsafe impl Send for Message {}
|
||||
|
||||
impl Message {
|
||||
pub fn new_scalar(
|
||||
|
|
|
|||
Loading…
Reference in a new issue