From f9558263ab264e5b52dc1d96fb84d9ddaf9f2646 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Thu, 3 Jan 2019 17:20:04 +0000 Subject: [PATCH] Implement `Send` and `Sync` for `TTS`. --- src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index bc873e4..c7c10a2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -50,6 +50,10 @@ trait Backend { pub struct TTS(Box); +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.