summaryrefslogtreecommitdiff
path: root/thread_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'thread_utils.py')
-rw-r--r--thread_utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/thread_utils.py b/thread_utils.py
index bb15c03..0130cdc 100644
--- a/thread_utils.py
+++ b/thread_utils.py
@@ -20,6 +20,9 @@ def current_thread_id() -> str:
def is_current_thread_main_thread() -> bool:
+ """Returns True is the current (calling) thread is the process' main
+ thread and False otherwise.
+ """
return threading.current_thread() is threading.main_thread()