| 1036 | /* Thread functions. */ |
| 1037 | |
| 1038 | static benchmarkThread *createBenchmarkThread(int index) { |
| 1039 | benchmarkThread *thread = (benchmarkThread*)zmalloc(sizeof(*thread), MALLOC_LOCAL); |
| 1040 | if (thread == NULL) return NULL; |
| 1041 | thread->index = index; |
| 1042 | thread->el = aeCreateEventLoop(1024*10); |
| 1043 | aeCreateTimeEvent(thread->el,1,showThroughput,NULL,NULL); |
| 1044 | return thread; |
| 1045 | } |
| 1046 | |
| 1047 | static void freeBenchmarkThread(benchmarkThread *thread) { |
| 1048 | if (thread->el) aeDeleteEventLoop(thread->el); |
no test coverage detected