mirror of https://github.com/ndarilek/tts-rs.git
Implement `Send` and `Sync` for `TTS`.
This commit is contained in:
parent
e82a10ba16
commit
f9558263ab
|
@ -50,6 +50,10 @@ trait Backend {
|
||||||
|
|
||||||
pub struct TTS(Box<Backend>);
|
pub struct TTS(Box<Backend>);
|
||||||
|
|
||||||
|
unsafe impl std::marker::Send for TTS {}
|
||||||
|
|
||||||
|
unsafe impl std::marker::Sync for TTS {}
|
||||||
|
|
||||||
impl TTS {
|
impl TTS {
|
||||||
/**
|
/**
|
||||||
* Create a new `TTS` instance with the specified backend.
|
* Create a new `TTS` instance with the specified backend.
|
||||||
|
|
Loading…
Reference in New Issue