v2.0.2
What's New
-
Interfaces:
- BasicLockable
- Lockable
- SharedLockable
- SharedResource
- SharedTimedLockable
- TimedLockable
-
Classes
- RecursiveTimedMutex
- SharedLock
- TimedMutex
-
Utilities
- lockGuard
Breaking Changes
This patch introduces breaking changes from prior 2.0.x versions. I understand this is not best practices and promise to avoid this from 2.1 onwards.
-
Remove .request, .requestFor, .requestShared and .requestUntil methods.
- .request should be replaced by lockGuard.
- .requestShared should be replaced by wrapping the shared mutex in a shared lock and then using lockGuard.
- There are no replacements for .requestFor and .requestUntil at this time.
-
Rename classes
- Mutex -> TimedMutex
- Semaphore -> CountingSemaphore
- MutexError -> LockError
- MutexOwnershipError -> OwnershipError
- MutexRelockError -> RelockError
Full Changelog: v2.0.1...v2.0.2