diff options
Diffstat (limited to 'embassy-executor/src/arch/std.rs')
| -rw-r--r-- | embassy-executor/src/arch/std.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/embassy-executor/src/arch/std.rs b/embassy-executor/src/arch/std.rs index 28e25fbd0..b08974a02 100644 --- a/embassy-executor/src/arch/std.rs +++ b/embassy-executor/src/arch/std.rs | |||
| @@ -8,7 +8,6 @@ compile_error!("`arch-std` requires `thread-context`."); | |||
| 8 | pub use thread::*; | 8 | pub use thread::*; |
| 9 | #[cfg(feature = "executor-thread")] | 9 | #[cfg(feature = "executor-thread")] |
| 10 | mod thread { | 10 | mod thread { |
| 11 | use std::marker::PhantomData; | ||
| 12 | use std::sync::{Condvar, Mutex}; | 11 | use std::sync::{Condvar, Mutex}; |
| 13 | 12 | ||
| 14 | #[cfg(feature = "nightly")] | 13 | #[cfg(feature = "nightly")] |
| @@ -20,16 +19,13 @@ mod thread { | |||
| 20 | /// TODO | 19 | /// TODO |
| 21 | // Name pending | 20 | // Name pending |
| 22 | pub struct StdThreadCtx { | 21 | pub struct StdThreadCtx { |
| 23 | _not_send: PhantomData<*mut ()>, | ||
| 24 | signaler: &'static Signaler, | 22 | signaler: &'static Signaler, |
| 25 | } | 23 | } |
| 26 | 24 | ||
| 27 | impl Default for StdThreadCtx { | 25 | impl Default for StdThreadCtx { |
| 28 | fn default() -> Self { | 26 | fn default() -> Self { |
| 29 | let signaler = &*Box::leak(Box::new(Signaler::new())); | ||
| 30 | Self { | 27 | Self { |
| 31 | _not_send: PhantomData, | 28 | signaler: &*Box::leak(Box::new(Signaler::new())), |
| 32 | signaler, | ||
| 33 | } | 29 | } |
| 34 | } | 30 | } |
| 35 | } | 31 | } |
