Skip to content

Commit

Permalink
Add Sync impl for Sel
Browse files Browse the repository at this point in the history
  • Loading branch information
syntheorem committed Oct 30, 2016
1 parent d19fcc6 commit 5cd5c5b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ impl PartialEq for Sel {

impl Eq for Sel { }

// Sel is safe to share across threads because it is immutable
unsafe impl Sync for Sel { }

impl Copy for Sel { }

impl Clone for Sel {
Expand Down

0 comments on commit 5cd5c5b

Please sign in to comment.