You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(common): Add a cross-process lock generation.
This patch adds `CrossProcessLockGeneration`. A lock generation is
an integer incremented each time the lock is taken by another holder.
If the generation changes, it means the lock is _poisoned_. This
_poisoning_ aspect is going to be expanded in the next patches. This
patch focuses on the introduction of this _generation_.
The `CrossProcessLock::try_lock_once` method, and
the `TryLock::try_lock` method, both returns a
`Option<CrossProcessLockGeneration>` instead of a `bool`: `true` is
replaced by `Some(_)`, `false` by `None`.
0 commit comments