Skip to content

Commit

Permalink
remove unused unsafe Send impl for Sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
emuell committed Jun 13, 2024
1 parent 8633032 commit 5a6f8bc
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/sequence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,3 @@ impl RhythmIter for Sequence {
.map(|event| event.with_offset(self.sample_offset))
}
}

/// Allow sending sequences accross threads: We only do so, to allow building sequences outside
/// the thread they are played in, and never reuse phrases from other already running sequences.
///
/// So this is **safe as long as new sequences only reference phrases within itself**.
unsafe impl Send for Sequence {}

0 comments on commit 5a6f8bc

Please sign in to comment.