summaryrefslogtreecommitdiffstats
path: root/shared_thread_data.py
diff options
context:
space:
mode:
Diffstat (limited to 'shared_thread_data.py')
-rw-r--r--shared_thread_data.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/shared_thread_data.py b/shared_thread_data.py
new file mode 100644
index 0000000..ba0a419
--- /dev/null
+++ b/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
+