Implement `Send` and `Sync` for `TTS`.

This commit is contained in:
Nolan Darilek 2019-01-03 17:20:04 +00:00
parent e82a10ba16
commit f9558263ab
1 changed files with 4 additions and 0 deletions

View File

@ -50,6 +50,10 @@ trait Backend {
pub struct TTS(Box<Backend>);
unsafe impl std::marker::Send for TTS {}
unsafe impl std::marker::Sync for TTS {}
impl TTS {
/**
* Create a new `TTS` instance with the specified backend.