default non-threaded

This commit is contained in:
David Rose 2009-07-17 19:01:35 +00:00
parent 5f271d85c6
commit 064f62f202

View File

@ -205,7 +205,10 @@ run_python() {
// it should be. // it should be.
AsyncTaskManager *task_mgr = AsyncTaskManager::get_global_ptr(); AsyncTaskManager *task_mgr = AsyncTaskManager::get_global_ptr();
PT(AsyncTaskChain) chain = task_mgr->make_task_chain("JavaScript"); 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); chain->set_thread_priority(TP_low);
PyObject *check_comm = PyObject_GetAttrString(p3dpython, "check_comm"); PyObject *check_comm = PyObject_GetAttrString(p3dpython, "check_comm");