Create a simple `FairRwLock` to avoid readers starving writers
[rust-lightning] / lightning / src / debug_sync.rs
index b31ceacea15852def4203b037d8e36216094f5c4..6b36682f43233f876dcacaf2e1ae34da0fef5e4e 100644 (file)
@@ -362,3 +362,5 @@ fn read_write_lockorder_fail() {
                let _a = a.write().unwrap();
        }
 }
+
+pub type FairRwLock<T> = RwLock<T>;