| 648 | } |
| 649 | |
| 650 | static void freeBenchmarkThreads() { |
| 651 | int i = 0; |
| 652 | for (; i < config.max_threads; i++) { |
| 653 | benchmarkThread *thread = config.threads[i]; |
| 654 | if (thread) freeBenchmarkThread(thread); |
| 655 | } |
| 656 | zfree(config.threads); |
| 657 | config.threads = NULL; |
| 658 | } |
| 659 | |
| 660 | static void *execBenchmarkThread(void *ptr) { |
| 661 | benchmarkThread *thread = (benchmarkThread *) ptr; |
no test coverage detected