Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
loom 0.6.1 - Docs.rs
[go: Go Back, main page]

loom 0.6.1

Permutation testing for concurrent code
Documentation
//! 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.")
    }
}