Skip to content

Commit

Permalink
Make JoinHandle compatible with Send
Browse files Browse the repository at this point in the history
  • Loading branch information
jerel committed Jul 5, 2023
1 parent 12aefd8 commit 4bbc2c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions membrane/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ pub trait Interface {

pub struct JoinHandle {
pub abort: Box<dyn Fn()>,
pub abort: Box<dyn Fn() + Send + 'static>,
}

impl JoinHandle {
Expand All @@ -39,6 +40,9 @@ impl JoinHandle {
}
}

unsafe impl Send for AbortHandle {}
unsafe impl Sync for AbortHandle {}

pub struct Info<'a> {
pub name: &'a str,
}
Expand Down

0 comments on commit 4bbc2c5

Please sign in to comment.