Skip to content

Commit 9422370

Browse files
committed
Move fairrwlock to the sync module
1 parent 9f10203 commit 9422370

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed
File renamed without changes.

lightning/src/sync/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ pub use debug_sync::*;
77
mod test_lockorder_checks;
88

99
#[cfg(all(feature = "std", any(feature = "_bench_unstable", not(test))))]
10-
pub use ::std::sync::{Arc, Mutex, Condvar, MutexGuard, RwLock, RwLockReadGuard, RwLockWriteGuard};
10+
pub(crate) mod fairrwlock;
1111
#[cfg(all(feature = "std", any(feature = "_bench_unstable", not(test))))]
12-
pub use crate::util::fairrwlock::FairRwLock;
12+
pub use {std::sync::{Arc, Mutex, Condvar, MutexGuard, RwLock, RwLockReadGuard, RwLockWriteGuard}, fairrwlock::FairRwLock};
1313

1414
#[cfg(not(feature = "std"))]
1515
mod nostd_sync;

lightning/src/util/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ pub mod wakers;
2727
pub(crate) mod atomic_counter;
2828
pub(crate) mod byte_utils;
2929
pub(crate) mod chacha20;
30-
#[cfg(all(any(feature = "_bench_unstable", not(test)), feature = "std"))]
31-
pub(crate) mod fairrwlock;
3230
#[cfg(fuzzing)]
3331
pub mod zbase32;
3432
#[cfg(not(fuzzing))]

0 commit comments

Comments
 (0)