| 623 | } |
| 624 | |
| 625 | static void initBenchmarkThreads() { |
| 626 | int i; |
| 627 | if (config.threads) freeBenchmarkThreads(); |
| 628 | config.threads = (benchmarkThread**)zmalloc(config.max_threads * sizeof(benchmarkThread*), MALLOC_LOCAL); |
| 629 | for (i = 0; i < config.max_threads; i++) { |
| 630 | benchmarkThread *thread = createBenchmarkThread(i); |
| 631 | config.threads[i] = thread; |
| 632 | } |
| 633 | } |
| 634 | |
| 635 | /* Thread functions. */ |
| 636 |
no test coverage detected