| 960 | } |
| 961 | |
| 962 | static void initBenchmarkThreads() { |
| 963 | int i; |
| 964 | if (config.threads) freeBenchmarkThreads(); |
| 965 | config.threads = zmalloc(config.num_threads * sizeof(benchmarkThread*)); |
| 966 | for (i = 0; i < config.num_threads; i++) { |
| 967 | benchmarkThread *thread = createBenchmarkThread(i); |
| 968 | config.threads[i] = thread; |
| 969 | } |
| 970 | } |
| 971 | |
| 972 | static void startBenchmarkThreads() { |
| 973 | int i; |
no test coverage detected