diff options
| author | Tyler <[email protected]> | 2023-07-16 19:08:01 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-07-16 19:08:01 -0500 |
| commit | 6d8a5c6c20953c998df6ddd26906abe520df946d (patch) | |
| tree | 32cfdf85a1aa132cb0f1aac56a934ceed93fc597 /embassy-executor | |
| parent | 3aedbce5c2775ff1ab10c3ca95ea1311043f4be4 (diff) | |
| parent | c7ec45a004750f590c1d9ea4a721972efe133b8e (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.toml | 4 | ||||
| -rw-r--r-- | embassy-executor/src/raw/mod.rs | 3 |
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 } | |||
| 61 | rtos-trace = { version = "0.1.2", optional = true } | 61 | rtos-trace = { version = "0.1.2", optional = true } |
| 62 | 62 | ||
| 63 | futures-util = { version = "0.3.17", default-features = false } | 63 | futures-util = { version = "0.3.17", default-features = false } |
| 64 | embassy-macros = { version = "0.2.0", path = "../embassy-macros" } | 64 | embassy-macros = { version = "0.2.0", path = "../embassy-macros" } |
| 65 | embassy-time = { version = "0.1.0", path = "../embassy-time", optional = true} | 65 | embassy-time = { version = "0.1.2", path = "../embassy-time", optional = true} |
| 66 | atomic-polyfill = "1.0.1" | 66 | atomic-polyfill = "1.0.1" |
| 67 | critical-section = "1.1" | 67 | critical-section = "1.1" |
| 68 | static_cell = "1.1" | 68 | static_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 | } |
