Create a simple `FairRwLock` to avoid readers starving writers
[rust-lightning] / lightning / src / util / mod.rs
index 95826b7e06ee73e0a02b3e1b36cf8ac6ef9ed12e..0757983314e73f8698673e226a884c2752911547 100644 (file)
@@ -25,6 +25,8 @@ pub mod persist;
 pub(crate) mod atomic_counter;
 pub(crate) mod byte_utils;
 pub(crate) mod chacha20;
+#[cfg(feature = "std")]
+pub(crate) mod fairrwlock;
 #[cfg(fuzzing)]
 pub mod zbase32;
 #[cfg(not(fuzzing))]