| 635 | /* Thread functions. */ |
| 636 | |
| 637 | static benchmarkThread *createBenchmarkThread(int index) { |
| 638 | benchmarkThread *thread = (benchmarkThread*)zmalloc(sizeof(*thread), MALLOC_LOCAL); |
| 639 | if (thread == NULL) return NULL; |
| 640 | thread->index = index; |
| 641 | thread->el = aeCreateEventLoop(1024*10); |
| 642 | return thread; |
| 643 | } |
| 644 | |
| 645 | static void freeBenchmarkThread(benchmarkThread *thread) { |
| 646 | if (thread->el) aeDeleteEventLoop(thread->el); |
no test coverage detected