diff options
Diffstat (limited to 'app/shared_thread_data.py')
| -rw-r--r-- | app/shared_thread_data.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app/shared_thread_data.py b/app/shared_thread_data.py new file mode 100644 index 0000000..40885e8 --- /dev/null +++ b/app/shared_thread_data.py @@ -0,0 +1,14 @@ +import threading + +class SharedThreadData: + def __init__(self, cfg): + self.transcript = "" + self.preview = "" + + self.stream = None + self.collector = None + + self.word_lock = threading.Lock() + self.exit_event = threading.Event() + self.cfg = cfg + |
