Skip to content

Commit

Permalink
fix Send for Scope<'_>
Browse files Browse the repository at this point in the history
  • Loading branch information
shiinamiyuki committed Sep 24, 2023
1 parent 77d4c4e commit d22e531
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions luisa_compute/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<DeviceHandle>,
Expand Down Expand Up @@ -679,6 +681,7 @@ pub struct Scope<'a> {
resource_tracker: RefCell<ResourceTracker>,
}


impl<'a> Scope<'a> {
#[inline]
pub fn handle(&self) -> api::Stream {
Expand Down

0 comments on commit d22e531

Please sign in to comment.