summaryrefslogtreecommitdiff
path: root/python/mainthread.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/mainthread.py')
-rw-r--r--python/mainthread.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/mainthread.py b/python/mainthread.py
index 9a9a2864..6993194e 100644
--- a/python/mainthread.py
+++ b/python/mainthread.py
@@ -58,3 +58,7 @@ def get_worker_thread_count():
def set_worker_thread_count(count):
core.BNSetWorkerThreadCount(count)
+
+
+def is_main_thread():
+ return core.BNIsMainThread()