wip: on collaborative scheduling

This commit is contained in:
Jonathan Kelley committed 2021-08-09 02:37:11 -04:00
1 parent fac42339c2
commit 1a323835c8
5 files changed
+122 -155

No files matched your search

+2 -2
View File
@@ -110,8 +110,8 @@ impl SharedResources {
}
/// this is unsafe because the caller needs to track which other scopes it's already using
pub unsafe fn get_scope_mut(&self, idx: ScopeId) -> Option<&mut Scope> {
let inner = &mut *self.components.get();
pub fn get_scope_mut(&self, idx: ScopeId) -> Option<&mut Scope> {
let inner = unsafe { &mut *self.components.get() };
inner.get_mut(idx.0)
}