/// 所属线程未绑定前,只提供同一通知的共享访问。
#[doc(hidden)]
pub struct PreparedThreadParker {
notifier: ThreadNotifier,
}
impl PreparedThreadParker {
/// 预备通知(notification)的同源操作。
pub fn new() -> Self {
prepared_parker_new_inner()
}
/// 预备通知(notification)的同源操作。
pub fn notifier(&self) -> ThreadNotifier {
prepared_parker_notice_inner(self)
}
/// 预备通知(notification)的同源操作。
pub fn bind(self) -> ThreadParker {
prepared_parker_bind_inner(self)
}
}
include!("prepared_parking_inner.rs");