Releases: shareup/synchronized
Releases · shareup/synchronized
4.0.0
- Increased Swift version to 5.7
- Increased minimum target versions
3.2.0
- Allow
Locked
to store non-Sendable
elements
3.1.0
- Add
Locked<Element>
to make it easier to ensure mutable state is only accessed safely.
- Add
bin/format.sh
3.0.0
Remove SynchronizedDynamic dynamic library.
2.3.0
Expose SynchronizedDynamic dynamic library in addition to the static library.
2.2.0
Improve correctness of Lock
and RecursiveLock
by calling UnsafeMutablePointer.deinitialize()
in deinit
. Also, potentially improve safety of RecursiveLock
by backing it directly with UnsafeMutablePointer<pthread_mutex_t>
instead of pthread_mutex_t
, which might help avoid problems caused by Swift's ampersand operator.
2.1.0
Changes tryLocked()
to return Bool
from to indicate success or failure of acquiring the lock.
2.0.0
Removes the Synchronized
protocol in favor of directly exposing Lock
and RecusiveLock
for use by client.
1.2.1
Reduce lock contention when cleaning up locks for deallocated objects.