summaryrefslogtreecommitdiffstats
path: root/app/shared_thread_data.py
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2025-05-29 15:03:06 -0700
committeryum <yum.food.vr@gmail.com>2025-05-29 15:03:06 -0700
commit0ebc79354ace812731a5c9a0a670cecd1ea941d7 (patch)
tree10a83d8761f365a320919d219b4a6f653db31c4d /app/shared_thread_data.py
parentf8e95c0b85288a10f435e0edabf43defa0c303ac (diff)
Move core app logic into folder
Diffstat (limited to 'app/shared_thread_data.py')
-rw-r--r--app/shared_thread_data.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/shared_thread_data.py b/app/shared_thread_data.py
new file mode 100644
index 0000000..ba0a419
--- /dev/null
+++ b/app/shared_thread_data.py
@@ -0,0 +1,9 @@
+import threading
+
+class SharedThreadData:
+ def __init__(self, cfg):
+ self.word = ""
+ self.word_lock = threading.Lock()
+ self.exit_event = threading.Event()
+ self.cfg = cfg
+