diff options
| author | Dario Nieuwenhuis <[email protected]> | 2024-12-09 00:28:14 +0100 |
|---|---|---|
| committer | Dániel Buga <[email protected]> | 2024-12-15 18:49:57 +0100 |
| commit | 2f2e2c6031a1abaecdac5ed2febe109e647fe6fd (patch) | |
| tree | 57ecbf9d7c0ab5e9439f12aedeaa58d0156d1605 /embassy-executor/src/raw/state_critical_section.rs | |
| parent | b268b1795fed58544c166c41842ce0d66328aa3e (diff) | |
Make `integrated-timers` the default, remove Cargo feature.
Diffstat (limited to 'embassy-executor/src/raw/state_critical_section.rs')
| -rw-r--r-- | embassy-executor/src/raw/state_critical_section.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/embassy-executor/src/raw/state_critical_section.rs b/embassy-executor/src/raw/state_critical_section.rs index c0ec2f530..367162ba2 100644 --- a/embassy-executor/src/raw/state_critical_section.rs +++ b/embassy-executor/src/raw/state_critical_section.rs | |||
| @@ -2,7 +2,6 @@ use core::cell::Cell; | |||
| 2 | 2 | ||
| 3 | use critical_section::Mutex; | 3 | use critical_section::Mutex; |
| 4 | 4 | ||
| 5 | #[cfg(feature = "integrated-timers")] | ||
| 6 | use super::timer_queue::TimerEnqueueOperation; | 5 | use super::timer_queue::TimerEnqueueOperation; |
| 7 | 6 | ||
| 8 | /// Task is spawned (has a future) | 7 | /// Task is spawned (has a future) |
| @@ -10,7 +9,6 @@ pub(crate) const STATE_SPAWNED: u32 = 1 << 0; | |||
| 10 | /// Task is in the executor run queue | 9 | /// Task is in the executor run queue |
| 11 | pub(crate) const STATE_RUN_QUEUED: u32 = 1 << 1; | 10 | pub(crate) const STATE_RUN_QUEUED: u32 = 1 << 1; |
| 12 | /// Task is in the executor timer queue | 11 | /// Task is in the executor timer queue |
| 13 | #[cfg(feature = "integrated-timers")] | ||
| 14 | pub(crate) const STATE_TIMER_QUEUED: u32 = 1 << 2; | 12 | pub(crate) const STATE_TIMER_QUEUED: u32 = 1 << 2; |
| 15 | 13 | ||
| 16 | pub(crate) struct State { | 14 | pub(crate) struct State { |
| @@ -77,7 +75,6 @@ impl State { | |||
| 77 | } | 75 | } |
| 78 | 76 | ||
| 79 | /// Mark the task as timer-queued. Return whether it can be enqueued. | 77 | /// Mark the task as timer-queued. Return whether it can be enqueued. |
| 80 | #[cfg(feature = "integrated-timers")] | ||
| 81 | #[inline(always)] | 78 | #[inline(always)] |
| 82 | pub fn timer_enqueue(&self) -> TimerEnqueueOperation { | 79 | pub fn timer_enqueue(&self) -> TimerEnqueueOperation { |
| 83 | self.update(|s| { | 80 | self.update(|s| { |
| @@ -93,7 +90,6 @@ impl State { | |||
| 93 | } | 90 | } |
| 94 | 91 | ||
| 95 | /// Unmark the task as timer-queued. | 92 | /// Unmark the task as timer-queued. |
| 96 | #[cfg(feature = "integrated-timers")] | ||
| 97 | #[inline(always)] | 93 | #[inline(always)] |
| 98 | pub fn timer_dequeue(&self) { | 94 | pub fn timer_dequeue(&self) { |
| 99 | self.update(|s| *s &= !STATE_TIMER_QUEUED); | 95 | self.update(|s| *s &= !STATE_TIMER_QUEUED); |
