aboutsummaryrefslogtreecommitdiff
path: root/embassy-executor/src/raw/state_critical_section.rs
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-executor/src/raw/state_critical_section.rs')
-rw-r--r--embassy-executor/src/raw/state_critical_section.rs4
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
3use critical_section::Mutex; 3use critical_section::Mutex;
4 4
5#[cfg(feature = "integrated-timers")]
6use super::timer_queue::TimerEnqueueOperation; 5use 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
11pub(crate) const STATE_RUN_QUEUED: u32 = 1 << 1; 10pub(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")]
14pub(crate) const STATE_TIMER_QUEUED: u32 = 1 << 2; 12pub(crate) const STATE_TIMER_QUEUED: u32 = 1 << 2;
15 13
16pub(crate) struct State { 14pub(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);