Create a simple `FairRwLock` to avoid readers starving writers
[rust-lightning] / lightning / src / sync.rs
index bde547036536b479bcf181740e0ea31a7cf42ebb..482759b8ca88b626fd0585f0e73f84d33a7d967c 100644 (file)
@@ -113,3 +113,5 @@ impl<T> RwLock<T> {
                Err(())
        }
 }
+
+pub type FairRwLock<T> = RwLock<T>;