Skip to content

Releases: pedromfedricci/mcslock

v0.4.0

04 Nov 21:27
v0.4.0
04009af
Compare
Choose a tag to compare

[0.4.0] - 2024-11-04

  • This version introduces breaking changes to fix a safety issue with the current API, see: #17.

Changed [BREAKING]

  • Remove raw::MutexGuard type, raw::Mutex::lock and raw::Mutex::try_lock methods (#17)
  • Rename raw::Mutex::lock_with method to raw::Mutex::lock_then (#17)
  • Rename raw::Mutex::try_lock_with method to raw::Mutex::try_lock_then (#17)
  • Rename raw::Mutex::lock_with_local method to raw::Mutex::lock_with_local_then (#17)
  • Rename raw::Mutex::lock_with_local_unchecked method to raw::Mutex::lock_with_local_then_unchecked (#17)
  • Rename raw::Mutex::try_lock_with_local method to raw::Mutex::try_lock_with_local_then (#17)
  • Rename raw::Mutex::try_lock_with_local_unchecked method to raw::Mutex::try_lock_with_local_then_unchecked (#17)
  • Rename barging::Mutex::lock_with method to barging::Mutex::lock_then (#17)
  • Rename barging::Mutex::try_lock_with method to barging::Mutex::try_lock_then (#17)
  • Change closure parameters of raw::Mutex's then (previous with) locking methods from MutexGuard to &mut T (#17)

Added

  • Add new raw::Mutex::lock_with_then method #17
  • Add new raw::Mutex::try_lock_with_then method #17

v0.3.0

29 Jul 18:30
v0.3.0
ff456f5
Compare
Choose a tag to compare

Changed

  • BREAKING: Require unsafe for Relax. Relax no longer requires Default.
    Relax now requires implementing the new function. All types under the
    relax module no longer implement Default (#14).

  • BREAKING: barging::Mutex has now two generic parameters for relax
    strategies as oppose to one: Rs and Rq (#15).

  • BREAKING: The root level lock_api module has been moved under the barging
    module (#16).

v0.2.0

09 Apr 23:09
v0.2.0
a4dcce7
Compare
Choose a tag to compare

Added

  • BREAKING: Add new thread_local locking design (#11).

Removed

  • BREAKING: Remove MutexNode reexports (#12).

v0.1.2

24 Mar 23:51
v0.1.2
ecea470
Compare
Choose a tag to compare

Added

  • Add Default impl for MutexNode (#10).

Fixed

  • Unbound R from Send/Sync when implementing Send/Sync (fda47a7).

v0.1.1

05 Jan 03:27
v0.1.1
c877dd4
Compare
Choose a tag to compare

Added

  • New unchecked locking APIs for thread_local::Mutex (#9).
  • Track caller location when thread_local::Mutex panics (#9).

v0.1.0

14 Dec 22:30
5e8d73a
Compare
Choose a tag to compare

First released version.