We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbd4722 commit fa3ca98Copy full SHA for fa3ca98
crates/matrix-sdk-common/src/cross_process_lock.rs
@@ -478,6 +478,12 @@ pub enum CrossProcessLockKind {
478
/// obtained it again. The lock is marked as dirty. It means the value
479
/// protected by the cross-process lock may need to be reloaded if
480
/// synchronisation is important.
481
+ ///
482
+ /// Until [`CrossProcessLock::clear_dirty`] is called,
483
+ /// [`CrossProcessLock::is_dirty`], [`CrossProcessLock::try_lock_once`] and
484
+ /// [`CrossProcessLock::spin_lock`] will report the lock as dirty. Put it
485
+ /// differently: dirty once, dirty forever, unless
486
+ /// [`CrossProcessLock::clear_dirty`] is called.
487
Dirty(CrossProcessLockGuard),
488
}
489
0 commit comments