Skip to content

Commit

Permalink
Merge pull request #159 from dekellum/stage-0.9.0
Browse files Browse the repository at this point in the history
Staging for parking_lot 0.9.0,  _core 0.6.0 and lock_api 0.3.1 releases
  • Loading branch information
Amanieu committed Jul 14, 2019
2 parents e26269a + b23f028 commit 58f9183
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 33 deletions.
61 changes: 35 additions & 26 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,28 @@
0.8.1 (2019-07-03)
==================

- Re-export the lock_api crate from parking_lot. (#150)
- Removed dependency on rand crate. (#144)
## parking_lot 0.9.0, parking_lot_core 0.6.0, lock_api 0.3.1 (TBD)

- The minimum supported rust version (MSRV) is now 1.32. This was primarily
increased for testing with the latest _rand_ crate. Rust 1.31 may continue to
work for normal use of these releases.
- Re-export lock_api (0.3.1) from parking_lot (#150)
- Removed (non-dev) dependency on rand crate for fairness mechanism, by
including a simple xorshift PRNG in core (#144)
- Android now uses the futex-based ThreadParker. (#140)
- Fixed CloudABI ThreadParker. (#140)
- Fix race condition in lock_api::ReentrantMutex (da16c2c7)

## lock_api 0.3.0 (2019-07-03, _yanked_)

- Use NonZeroUsize in GetThreadId::nonzero_thread_id (#148)
- Debug assert lock_count in ReentrantMutex (#148)
- Tag as `unsafe` and document some internal methods (#148)
- This release was _yanked_ due to a regression in ReentrantMutex (da16c2c7)

## parking_lot 0.8.1 (2019-07-03, _yanked_)

- Re-export lock_api (0.3.0) from parking_lot (#150)
- This release was _yanked_ from crates.io due to unexpected breakage (#156)

0.8.0 (2019-05-04)
==================
## parking_lot 0.8.0, parking_lot_core 0.5.0, lock_api 0.2.0 (2019-05-04)

- Fix race conditions in deadlock detection.
- Support for more platforms by adding ThreadParker implementations for
Expand All @@ -18,33 +33,28 @@
- Fix was_last_thread value in the timeout callback of park() (#129).
- Support single byte Mutex/Once on stable Rust when compiler is at least
version 1.34.
- Make Condvar::new and Once::new const fns on stable Rust and remove ONCE_INIT
(#134).
- Make Condvar::new and Once::new const fns on stable Rust and remove
ONCE_INIT (#134).
- Add optional Serde support (#135).

0.7.1 (2019-01-01)
==================
## parking_lot 0.7.1 (2019-01-01)

- Fixed potential deadlock when upgrading a RwLock.
- Fixed overflow panic on very long timeouts (#111).

0.7.0 (2018-11-20)
==================
## parking_lot 0.7.0, parking_lot_core 0.4.0 (2018-11-26)

- Return if or how many threads were notified from `Condvar::notify_*`

0.6.3 (2018-07-18)
==================
## parking_lot 0.6.3 (2018-07-18)

- Export `RawMutex`, `RawRwLock` and `RawThreadId`.

0.6.2 (2018-06-18)
==================
## parking_lot 0.6.2 (2018-06-18)

- Enable `lock_api/nightly` feature from `parking_lot/nightly` (#79)

0.6.1 (2018-06-08)
==================
## parking_lot 0.6.1 (2018-06-08)

Added missing typedefs for mapped lock guards:

Expand All @@ -53,16 +63,15 @@ Added missing typedefs for mapped lock guards:
- `MappedRwLockReadGuard`
- `MappedRwLockWriteGuard`

0.6.0 (2018-06-08)
==================
## parking_lot 0.6.0 (2018-06-08)

This release moves most of the code for type-safe `Mutex` and `RwLock` types
into a separate crate called `lock_api`. This new crate is compatible with
`no_std` and provides `Mutex` and `RwLock` type-safe wrapper types from a
raw mutex type which implements the `RawMutex` or `RawRwLock` trait. The API
provided by the wrapper types can be extended by implementing more traits on the
raw mutex type which provide more functionality (e.g. `RawMutexTimed`). See the
crate documentation for more details.
`no_std` and provides `Mutex` and `RwLock` type-safe wrapper types from a raw
mutex type which implements the `RawMutex` or `RawRwLock` trait. The API
provided by the wrapper types can be extended by implementing more traits on
the raw mutex type which provide more functionality (e.g. `RawMutexTimed`). See
the crate documentation for more details.

There are also several major changes:

Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "parking_lot"
version = "0.8.1"
version = "0.9.0"
authors = ["Amanieu d'Antras <amanieu@gmail.com>"]
description = "More compact and efficient implementations of the standard synchronization primitives."
license = "Apache-2.0/MIT"
Expand All @@ -11,8 +11,8 @@ categories = ["concurrency"]
edition = "2018"

[dependencies]
parking_lot_core = { path = "core", version = "0.5" }
lock_api = { path = "lock_api", version = "0.3" }
parking_lot_core = { path = "core", version = "0.6" }
lock_api = { path = "lock_api", version = "0.3.1" }

[dev-dependencies]
rand = "0.7"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Add this to your `Cargo.toml`:

```toml
[dependencies]
parking_lot = "0.8"
parking_lot = "0.9"
```

and this to your crate root:
Expand All @@ -115,7 +115,7 @@ To enable nightly-only features, add this to your `Cargo.toml` instead:

```toml
[dependencies]
parking_lot = {version = "0.8", features = ["nightly"]}
parking_lot = {version = "0.9", features = ["nightly"]}
```

The experimental deadlock detector can be enabled with the
Expand Down
2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "parking_lot_core"
version = "0.5.0"
version = "0.6.0"
authors = ["Amanieu d'Antras <amanieu@gmail.com>"]
description = "An advanced API for creating custom synchronization primitives."
license = "Apache-2.0/MIT"
Expand Down
2 changes: 1 addition & 1 deletion lock_api/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lock_api"
version = "0.3.0"
version = "0.3.1"
authors = ["Amanieu d'Antras <amanieu@gmail.com>"]
description = "Wrappers to create fully-featured Mutex and RwLock types. Compatible with no_std."
license = "Apache-2.0/MIT"
Expand Down

0 comments on commit 58f9183

Please sign in to comment.