From 064f62f2026fd25660233ba72219bcffcc27fbd5 Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 17 Jul 2009 19:01:35 +0000 Subject: [PATCH] default non-threaded --- direct/src/plugin/p3dPythonRun.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/direct/src/plugin/p3dPythonRun.cxx b/direct/src/plugin/p3dPythonRun.cxx index 1cadc8080f..5721130c74 100755 --- a/direct/src/plugin/p3dPythonRun.cxx +++ b/direct/src/plugin/p3dPythonRun.cxx @@ -205,7 +205,10 @@ run_python() { // it should be. AsyncTaskManager *task_mgr = AsyncTaskManager::get_global_ptr(); PT(AsyncTaskChain) chain = task_mgr->make_task_chain("JavaScript"); - chain->set_num_threads(1); + + // The default is not threaded (num_threads == 0), but if the app + // programmer decides to enable threads, the default is TP_low + // priority. chain->set_thread_priority(TP_low); PyObject *check_comm = PyObject_GetAttrString(p3dpython, "check_comm");