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.
rustfmt
sync/fairrwlock.rs
1 parent edcdc56 commit 2cb1664Copy full SHA for 2cb1664
lightning/src/sync/fairrwlock.rs
@@ -1,6 +1,6 @@
1
-use std::sync::{LockResult, RwLock, RwLockReadGuard, RwLockWriteGuard, TryLockResult};
2
-use std::sync::atomic::{AtomicUsize, Ordering};
3
use super::{LockHeldState, LockTestExt};
+use std::sync::atomic::{AtomicUsize, Ordering};
+use std::sync::{LockResult, RwLock, RwLockReadGuard, RwLockWriteGuard, TryLockResult};
4
5
/// Rust libstd's RwLock does not provide any fairness guarantees (and, in fact, when used on
6
/// Linux with pthreads under the hood, readers trivially and completely starve writers).
0 commit comments