diff options
| author | Rusty Wagner <rusty@vector35.com> | 2016-09-06 21:15:32 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2016-09-06 21:15:32 -0400 |
| commit | f5e59b13b726a0d154dbe9351010ed3bd4b2b9e6 (patch) | |
| tree | af2e1c90555e486dc35820d557ca06c2d68cedff /python/__init__.py | |
| parent | 2e2c0fad51051871642f10f57cc0db96dd58a2ad (diff) | |
Add APIs for interactive work queue and worker thread count
Diffstat (limited to 'python/__init__.py')
| -rw-r--r-- | python/__init__.py | 12 |
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() |
