use crate::sync::{atomic::AtomicBool, Mutex};
use super::super::GateState;
impl GateState {
#[cfg(not(loom))]
pub(in crate::gate) const fn new() -> Self {
Self {
waker: Mutex::new(None),
woke: AtomicBool::new(true),
}
}
#[cfg(loom)]
pub(in crate::gate) fn new() -> Self {
Self {
waker: Mutex::new(None),
woke: AtomicBool::new(true),
}
}
}