MCPcopy Create free account
hub / github.com/F-Stack/f-stack / freeBenchmarkThreads

Function freeBenchmarkThreads

app/redis-6.2.6/src/redis-benchmark.c:1039–1047  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1037}
1038
1039static void freeBenchmarkThreads() {
1040 int i = 0;
1041 for (; i < config.num_threads; i++) {
1042 benchmarkThread *thread = config.threads[i];
1043 if (thread) freeBenchmarkThread(thread);
1044 }
1045 zfree(config.threads);
1046 config.threads = NULL;
1047}
1048
1049static void *execBenchmarkThread(void *ptr) {
1050 benchmarkThread *thread = (benchmarkThread *) ptr;

Callers 2

initBenchmarkThreadsFunction · 0.85
benchmarkFunction · 0.85

Calls 2

freeBenchmarkThreadFunction · 0.85
zfreeFunction · 0.70

Tested by

no test coverage detected