Skip to content

Commit 985032c

Browse files
committed
feat(common): Detect when the cross-process lock has been dirtied.
This patch detects when the cross-process lock has been dirtied. A new `CrossProcessLockResult` enum is introduced to simplify the returned value of `try_lock_once` and `spin_lock`. It flattens the previous `Result<Option<_>>` by providing 3 variants: `Clean`, `Dirty` and `Unobtained`.
1 parent 4f7384c commit 985032c

File tree

2 files changed

+209
-69
lines changed

2 files changed

+209
-69
lines changed

0 commit comments

Comments
 (0)