-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "spin_sleep" | ||
version = "1.1.0" | ||
version = "1.1.1" | ||
authors = ["Alex Butler <[email protected]>"] | ||
edition = "2018" | ||
description = "Accurate sleeping. Only use native sleep as far as it can be trusted, then spin." | ||
|