Skip to content

Commit

Permalink
Update tokio/src/runtime/io/scheduled_io.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Alice Ryhl <[email protected]>
  • Loading branch information
nurmohammed840 and Darksonn authored Nov 13, 2024
1 parent 61bf1b8 commit 603cf98
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tokio/src/runtime/io/scheduled_io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,9 @@ impl ScheduledIo {
let ready = Ready::from_usize(READINESS.unpack(curr));
Some(TICK.pack(new_tick, f(ready).as_usize()))
};
let _ = self.readiness.fetch_update(AcqRel, Acquire, update);
let _ = self.readiness.fetch_update(AcqRel, Acquire, |curr| {
...
});
}

/// Notifies all pending waiters that have registered interest in `ready`.
Expand Down

0 comments on commit 603cf98

Please sign in to comment.