mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 05:03:05 +00:00
706b28b357
See prior comment thread: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5454793/6..9//COMMIT_MSG#b12 `TimerTrait::reset` offers a very similar API to the `timerfd_settime` system call, but in practice is almost used to set either a one-shot timer, or a repeating timer with an initial timeout the same as the repeating timeout. `kqueue`'s timer functionality only supports the cases that are actually used in practice. This change aligns the API with the way it is used, and makes the distinction between the behavior of the arguments more obvious. Test: tools/presubmit Test: cargo test -p base timer -- --ignored Bug: 335486579 Change-Id: I1873ab9cccaf7a4b988431839964b1c253f76a34 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5463100 Commit-Queue: Cody Schuffelen <schuffelen@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> |
||
---|---|---|
.. | ||
src | ||
tests | ||
build.rs | ||
Cargo.toml | ||
prebuilts_version |