1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
//! A stub for `std::sync::Barrier`. #[derive(Debug)] /// `std::sync::Barrier` is not supported yet in Loom. This stub is provided just /// to make the code to compile. pub struct Barrier {} impl Barrier { /// `std::sync::Barrier` is not supported yet in Loom. This stub is provided just /// to make the code to compile. pub fn new(_n: usize) -> Self { unimplemented!("std::sync::Barrier is not supported yet in Loom.") } /// `std::sync::Barrier` is not supported yet in Loom. This stub is provided just /// to make the code to compile. pub fn wait(&self) -> std::sync::BarrierWaitResult { unimplemented!("std::sync::Barrier is not supported yet in Loom.") } }