From ad67682235c85dc851f4dba81070e77bc08e1c69 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Thu, 3 Dec 2020 13:21:24 -0600 Subject: [PATCH] Implement Send and Sync for UtteranceId on most platforms. --- src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 782f25f..820ccd3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -69,6 +69,10 @@ pub enum UtteranceId { AvFoundation(id), } +unsafe impl Send for UtteranceId {} + +unsafe impl Sync for UtteranceId {} + pub struct Features { pub stop: bool, pub rate: bool,