Skip to content

Commit 1877714

Browse files
committed
f sp
1 parent 4fbaffd commit 1877714

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lightning/src/sync/debug_sync.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,8 @@ impl<T> RwLock<T> {
327327
pub fn read<'a>(&'a self) -> LockResult<RwLockReadGuard<'a, T>> {
328328
// Note that while we could be taking a recursive read lock here, Rust's `RwLock` may
329329
// deadlock trying to take a second read lock if another thread is waiting on the write
330-
// lock. Its platform dependent (but our in-tree `FairRwLock` guarantees this behavior).
330+
// lock. This behavior is platform dependent, but our in-tree `FairRwLock` guarantees
331+
// such a deadlock.
331332
LockMetadata::pre_lock(&self.deps, false);
332333
self.inner.read().map(|guard| RwLockReadGuard { lock: self, guard }).map_err(|_| ())
333334
}

0 commit comments

Comments
 (0)