diff --git a/luisa_compute/src/runtime.rs b/luisa_compute/src/runtime.rs index 6f699de..e18df9e 100644 --- a/luisa_compute/src/runtime.rs +++ b/luisa_compute/src/runtime.rs @@ -510,6 +510,8 @@ pub(crate) enum StreamHandle { mutex: RawMutex, }, } +unsafe impl Send for StreamHandle {} +unsafe impl Sync for StreamHandle {} pub(crate) struct SwapchainHandle { pub(crate) device: Arc, @@ -679,6 +681,7 @@ pub struct Scope<'a> { resource_tracker: RefCell, } + impl<'a> Scope<'a> { #[inline] pub fn handle(&self) -> api::Stream {