aboutsummaryrefslogtreecommitdiff
path: root/embassy-executor
diff options
context:
space:
mode:
authorTyler <[email protected]>2023-07-16 19:08:01 -0500
committerGitHub <[email protected]>2023-07-16 19:08:01 -0500
commit6d8a5c6c20953c998df6ddd26906abe520df946d (patch)
tree32cfdf85a1aa132cb0f1aac56a934ceed93fc597 /embassy-executor
parent3aedbce5c2775ff1ab10c3ca95ea1311043f4be4 (diff)
parentc7ec45a004750f590c1d9ea4a721972efe133b8e (diff)
Merge pull request #2 from embassy-rs/main
Pull changes from base embassy repo
Diffstat (limited to 'embassy-executor')
-rw-r--r--embassy-executor/Cargo.toml4
-rw-r--r--embassy-executor/src/raw/mod.rs3
2 files changed, 5 insertions, 2 deletions
diff --git a/embassy-executor/Cargo.toml b/embassy-executor/Cargo.toml
index 1e5494ef8..590718e3e 100644
--- a/embassy-executor/Cargo.toml
+++ b/embassy-executor/Cargo.toml
@@ -61,8 +61,8 @@ log = { version = "0.4.14", optional = true }
61rtos-trace = { version = "0.1.2", optional = true } 61rtos-trace = { version = "0.1.2", optional = true }
62 62
63futures-util = { version = "0.3.17", default-features = false } 63futures-util = { version = "0.3.17", default-features = false }
64embassy-macros = { version = "0.2.0", path = "../embassy-macros" } 64embassy-macros = { version = "0.2.0", path = "../embassy-macros" }
65embassy-time = { version = "0.1.0", path = "../embassy-time", optional = true} 65embassy-time = { version = "0.1.2", path = "../embassy-time", optional = true}
66atomic-polyfill = "1.0.1" 66atomic-polyfill = "1.0.1"
67critical-section = "1.1" 67critical-section = "1.1"
68static_cell = "1.1" 68static_cell = "1.1"
diff --git a/embassy-executor/src/raw/mod.rs b/embassy-executor/src/raw/mod.rs
index bd0cff26b..f3760f589 100644
--- a/embassy-executor/src/raw/mod.rs
+++ b/embassy-executor/src/raw/mod.rs
@@ -165,6 +165,9 @@ impl<F: Future + 'static> TaskStorage<F> {
165 Poll::Ready(_) => { 165 Poll::Ready(_) => {
166 this.future.drop_in_place(); 166 this.future.drop_in_place();
167 this.raw.state.fetch_and(!STATE_SPAWNED, Ordering::AcqRel); 167 this.raw.state.fetch_and(!STATE_SPAWNED, Ordering::AcqRel);
168
169 #[cfg(feature = "integrated-timers")]
170 this.raw.expires_at.set(Instant::MAX);
168 } 171 }
169 Poll::Pending => {} 172 Poll::Pending => {}
170 } 173 }