diff options
Diffstat (limited to 'embassy-executor/src/raw/mod.rs')
| -rw-r--r-- | embassy-executor/src/raw/mod.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/embassy-executor/src/raw/mod.rs b/embassy-executor/src/raw/mod.rs index 73f4f00ee..5b1f33a0e 100644 --- a/embassy-executor/src/raw/mod.rs +++ b/embassy-executor/src/raw/mod.rs | |||
| @@ -219,6 +219,9 @@ impl<F: Future + 'static> TaskStorage<F> { | |||
| 219 | let mut cx = Context::from_waker(&waker); | 219 | let mut cx = Context::from_waker(&waker); |
| 220 | match future.poll(&mut cx) { | 220 | match future.poll(&mut cx) { |
| 221 | Poll::Ready(_) => { | 221 | Poll::Ready(_) => { |
| 222 | #[cfg(feature = "trace")] | ||
| 223 | let exec_ptr: *const SyncExecutor = this.raw.executor.load(Ordering::Relaxed); | ||
| 224 | |||
| 222 | // As the future has finished and this function will not be called | 225 | // As the future has finished and this function will not be called |
| 223 | // again, we can safely drop the future here. | 226 | // again, we can safely drop the future here. |
| 224 | this.future.drop_in_place(); | 227 | this.future.drop_in_place(); |
| @@ -232,7 +235,7 @@ impl<F: Future + 'static> TaskStorage<F> { | |||
| 232 | this.raw.state.despawn(); | 235 | this.raw.state.despawn(); |
| 233 | 236 | ||
| 234 | #[cfg(feature = "trace")] | 237 | #[cfg(feature = "trace")] |
| 235 | trace::task_end(self, &task); | 238 | trace::task_end(exec_ptr, &p); |
| 236 | } | 239 | } |
| 237 | Poll::Pending => {} | 240 | Poll::Pending => {} |
| 238 | } | 241 | } |
