Skip to content

Releases: alexheretic/spin-sleep

spin-sleep-1.2.1

07 Aug 16:42
Compare
Choose a tag to compare
  • Windows: Update windows-sys to 0.59.

spin-sleep-util-0.1.1

05 Jan 22:32
Compare
Choose a tag to compare
  • Add Interval::set_period, Interval::tick_no_spin.

spin-sleep-1.2.0

05 Jan 07:43
Compare
Choose a tag to compare
  • 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.

spin-sleep-util-0.1.0

04 Jan 15:27
dcd48ef
Compare
Choose a tag to compare
  • Add Interval, RateReporter.

1.1.1

24 Mar 09:20
Compare
Choose a tag to compare
  • Fix LoopHelper increment overflow handling.

1.1.0

25 Feb 18:25
1.1.0
Compare
Choose a tag to compare
  • 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).

1.0.0

25 Apr 08:59
929eef7
Compare
Choose a tag to compare
  • Use rust 1.38 duration_float methods to replace manual implementations.
  • Use edition 2018.
  • Windows: Replace lazy_static dependency with once_cell.

0.3.7

21 Sep 08:46
0.3.7
5371212
Compare
Choose a tag to compare
  • report_rate() no longer eagerly reports on first call, as this is often inaccurate & unexpected.

0.3.6

12 Jul 17:00
0.3.6
067f5bb
Compare
Choose a tag to compare
  • Add spin_sleep::sleep
  • Add LoopHelper::set_target_rate & LoopHelper::target_rate
  • Improve documentation

0.3.5

12 Mar 13:49
0.3.5
1620307
Compare
Choose a tag to compare
  • Use std::thread::yield_now in spin wait loops for efficiency
  • Add Default implementation for SpinSleeper using OS-specific accuracy defaults