| 969 | } |
| 970 | |
| 971 | static void initBenchmarkThreads() { |
| 972 | int i; |
| 973 | if (config.threads) freeBenchmarkThreads(); |
| 974 | config.threads = (benchmarkThread**)zmalloc(config.num_threads * sizeof(benchmarkThread*), MALLOC_LOCAL); |
| 975 | for (i = 0; i < config.num_threads; i++) { |
| 976 | benchmarkThread *thread = createBenchmarkThread(i); |
| 977 | config.threads[i] = thread; |
| 978 | } |
| 979 | } |
| 980 | |
| 981 | static void startBenchmarkThreads() { |
| 982 | int i; |
no test coverage detected