use crate::component::concurrent::{ConcurrentState, CurrentThread};
use crate::error::Result;
use crate::store::StoreOpaque;
#[derive(Copy, Clone, PartialEq, Eq, Hash, PartialOrd, Ord, Debug)]
pub struct TaskGroupId {
_priv: (),
}
impl StoreOpaque {
pub(crate) fn clean_up_task_groups(&mut self) {}
}
impl ConcurrentState {
pub(super) fn handle_thread_switch(
&mut self,
_old: CurrentThread,
_new: CurrentThread,
) -> Result<()> {
Ok(())
}
pub(super) fn make_task_group(&mut self) -> Result<TaskGroupId> {
Ok(TaskGroupId { _priv: () })
}
pub(super) fn increment_group_ref_count(&mut self, _group: TaskGroupId) -> Result<()> {
Ok(())
}
pub(super) fn decrement_group_ref_count(&mut self, _group: TaskGroupId) -> Result<()> {
Ok(())
}
}