Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 1.14 KB

CHANGELOG.md

File metadata and controls

34 lines (27 loc) · 1.14 KB

v1.2.1

  • Windows: Update windows-sys to 0.59.

v1.2.0

  • Deprecate LoopHelper. Instead use spin_sleep_util crate.
  • Windows: Use a high resolution waitable timer when available (>= Windows 10, version 1803).
  • Windows: Replace winapi with windows-sys dependency.
  • Windows: Remove once_cell dependency.

v1.1.1

  • Fix LoopHelper increment overflow handling.

v1.1.0

  • Expose fn native_sleep.
  • Add SpinSleeper::with_spin_strategy which allows specifying a SpinStrategy. Previously thread yielding was always used.
  • Windows: Use SpinStrategy::SpinLoopHint by default (see #12).

v1.0.0

  • Use rust 1.38 duration_float methods to replace manual implementations.
  • Use edition 2018.
  • Windows: Replace lazy_static dependency with once_cell.

v0.3.7

  • report_rate() no longer eagerly reports on first call, as this is often inaccurate & unexpected.

v0.3.6

  • Add spin_sleep::sleep
  • Add LoopHelper::set_target_rate & LoopHelper::target_rate
  • Improve documentation

v0.3.5

  • Use std::thread::yield_now in spin wait loops for efficiency
  • Add Default implementation for SpinSleeper using OS-specific accuracy defaults