| 1023 | /* Thread functions. */ |
| 1024 | |
| 1025 | static benchmarkThread *createBenchmarkThread(int index) { |
| 1026 | benchmarkThread *thread = zmalloc(sizeof(*thread)); |
| 1027 | if (thread == NULL) return NULL; |
| 1028 | thread->index = index; |
| 1029 | thread->el = aeCreateEventLoop(1024*10); |
| 1030 | aeCreateTimeEvent(thread->el,1,showThroughput,NULL,NULL); |
| 1031 | return thread; |
| 1032 | } |
| 1033 | |
| 1034 | static void freeBenchmarkThread(benchmarkThread *thread) { |
| 1035 | if (thread->el) aeDeleteEventLoop(thread->el); |
no test coverage detected