Skip to content

v0.2.0

Compare
Choose a tag to compare
@bertptrs bertptrs released this 07 May 14:52
· 50 commits to master since this release
2f6e214

Added

  • Generic support for wrapping mutexes that implement the traits provided by the
    lock_api crate. This can be used for creating support for other mutex providers that
    implement it.

  • Support for parking_lot mutexes. Support includes type aliases for all
    provided mutex types as well as a dedicated Once wrapper.

  • Simple benchmark to track the rough performance penalty incurred by dependency tracking.

Breaking

  • The library now requires edition 2021.

  • The Mutex- and RwLockGuards now dereference to T rather than the lock guard they wrap. This
    is technically a bugfix but can theoretically break existing code.

  • Self-cycles are no longer allowed for lock dependencies. They previously were because it usually
    isn't a problem, but it can create RWR deadlocks with RwLocks.

Changed

  • The project now targets edition 2021