diff options
| author | Dániel Buga <[email protected]> | 2024-12-17 18:05:48 +0100 |
|---|---|---|
| committer | Dániel Buga <[email protected]> | 2024-12-17 18:07:06 +0100 |
| commit | 8fd08b1e97533c7526bb4937770060d18bb37410 (patch) | |
| tree | 3e30a41e0d630f6b472bd85a4407f600ca07410a /embassy-executor/src/raw/state_atomics_arm.rs | |
| parent | edb8f21a741358f7c80b744f008f1e5acc77b429 (diff) | |
Swap poll_fn to allow polling exited tasks
Diffstat (limited to 'embassy-executor/src/raw/state_atomics_arm.rs')
| -rw-r--r-- | embassy-executor/src/raw/state_atomics_arm.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/embassy-executor/src/raw/state_atomics_arm.rs b/embassy-executor/src/raw/state_atomics_arm.rs index cbda0d89d..b743dcc2c 100644 --- a/embassy-executor/src/raw/state_atomics_arm.rs +++ b/embassy-executor/src/raw/state_atomics_arm.rs | |||
| @@ -75,11 +75,9 @@ impl State { | |||
| 75 | 75 | ||
| 76 | /// Unmark the task as run-queued. Return whether the task is spawned. | 76 | /// Unmark the task as run-queued. Return whether the task is spawned. |
| 77 | #[inline(always)] | 77 | #[inline(always)] |
| 78 | pub fn run_dequeue(&self) -> bool { | 78 | pub fn run_dequeue(&self) { |
| 79 | compiler_fence(Ordering::Release); | 79 | compiler_fence(Ordering::Release); |
| 80 | 80 | ||
| 81 | let r = self.spawned.load(Ordering::Relaxed); | ||
| 82 | self.run_queued.store(false, Ordering::Relaxed); | 81 | self.run_queued.store(false, Ordering::Relaxed); |
| 83 | r | ||
| 84 | } | 82 | } |
| 85 | } | 83 | } |
