mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +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 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] {
|
||||||
|
|
|
||||||
|
|
@ -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(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue