use super::*;
#[derive(Debug)]
pub(in crate::sched::system) struct ThreadRuntimeState {
pub(in crate::sched::system) context: ExecutionContextHandle,
pub(in crate::sched::system) address_space: AddressSpaceHandle,
}
impl ThreadRuntimeState {
pub(super) const fn new(
context: ExecutionContextHandle,
address_space: AddressSpaceHandle,
) -> Self {
Self {
context,
address_space,
}
}
pub(super) const fn binding(&self) -> crate::runtime::switch::ThreadRuntimeBinding {
crate::runtime::switch::ThreadRuntimeBinding::new(self.context, self.address_space)
}
}