| 425 | } |
| 426 | |
| 427 | static void setNumThreads(int numThreads) |
| 428 | { |
| 429 | #if BT_THREADSAFE |
| 430 | int newNumThreads = (std::min)(numThreads, int(BT_MAX_THREAD_COUNT)); |
| 431 | int oldNumThreads = btGetTaskScheduler()->getNumThreads(); |
| 432 | // only call when the thread count is different |
| 433 | if (newNumThreads != oldNumThreads) |
| 434 | { |
| 435 | btGetTaskScheduler()->setNumThreads(newNumThreads); |
| 436 | } |
| 437 | #endif // #if BT_THREADSAFE |
| 438 | } |
| 439 | |
| 440 | void setTaskSchedulerComboBoxCallback(int combobox, const char* item, void* userPointer) |
| 441 | { |
no test coverage detected