summaryrefslogtreecommitdiff
path: root/python/__init__.py
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2016-09-06 21:15:32 -0400
committerRusty Wagner <rusty@vector35.com>2016-09-06 21:15:32 -0400
commitf5e59b13b726a0d154dbe9351010ed3bd4b2b9e6 (patch)
treeaf2e1c90555e486dc35820d557ca06c2d68cedff /python/__init__.py
parent2e2c0fad51051871642f10f57cc0db96dd58a2ad (diff)
Add APIs for interactive work queue and worker thread count
Diffstat (limited to 'python/__init__.py')
-rw-r--r--python/__init__.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/python/__init__.py b/python/__init__.py
index d5eca84a..e36670cc 100644
--- a/python/__init__.py
+++ b/python/__init__.py
@@ -10097,7 +10097,17 @@ def worker_enqueue(func):
def worker_priority_enqueue(func):
action = _ThreadActionContext(func)
- core.BNWorkerEnqueue(0, action.callback)
+ core.BNWorkerPriorityEnqueue(0, action.callback)
+
+def worker_interactive_enqueue(func):
+ action = _ThreadActionContext(func)
+ core.BNWorkerInteractiveEnqueue(0, action.callback)
+
+def get_worker_thread_count():
+ return core.BNGetWorkerThreadCount()
+
+def set_worker_thread_count(count):
+ core.BNSetWorkerThreadCount(count)
bundled_plugin_path = core.BNGetBundledPluginDirectory()
user_plugin_path = core.BNGetUserPluginDirectory()