mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-25 21:19:35 +01:00
Of by 1
This commit is contained in:
parent
1345f30a69
commit
e52088bbd8
1 changed files with 2 additions and 2 deletions
|
@ -82,7 +82,7 @@ where
|
|||
mono.clear_compare_flag();
|
||||
|
||||
if let Some(instant) = self.0.peek().map(|p| p.instant) {
|
||||
if instant < Self::unwrapper(Clock::try_now(mono)) {
|
||||
if instant <= Self::unwrapper(Clock::try_now(mono)) {
|
||||
// task became ready
|
||||
let nr = unsafe { self.0.pop_unchecked() };
|
||||
|
||||
|
@ -96,7 +96,7 @@ where
|
|||
// dequeue. If the monotonic is fast enough it can happen that from the
|
||||
// read of now to the set of the compare, the time can overflow. This is to
|
||||
// guard against this.
|
||||
if instant < Self::unwrapper(Clock::try_now(mono)) {
|
||||
if instant <= Self::unwrapper(Clock::try_now(mono)) {
|
||||
let nr = unsafe { self.0.pop_unchecked() };
|
||||
|
||||
Some((nr.task, nr.index))
|
||||
|
|
Loading…
Reference in a new issue