Skip to content

Commit

Permalink
Merge pull request #123 from 5ohue/master
Browse files Browse the repository at this point in the history
Add `impl Send` for wand types
  • Loading branch information
nlfiedler authored May 25, 2024
2 parents 7fcf43e + dcf95fb commit 660c77b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/wand/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,13 @@ macro_rules! wand_common {
}
}
}

// The wand types should be safe to drop in a different thread
unsafe impl Send for $wand {}

// Probably shouldn't implement Sync because some methods might not be
// safe to call on the same wand from different threads.
// unsafe impl Sync for $wand {}
};
}

Expand Down

0 comments on commit 660c77b

Please sign in to comment.