MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / freeBenchmarkThreads

Function freeBenchmarkThreads

src/keydb-diagnostic-tool.cpp:650–658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

648}
649
650static 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
660static void *execBenchmarkThread(void *ptr) {
661 benchmarkThread *thread = (benchmarkThread *) ptr;

Callers 2

initBenchmarkThreadsFunction · 0.70
mainFunction · 0.70

Calls 2

zfreeFunction · 0.85
freeBenchmarkThreadFunction · 0.70

Tested by

no test coverage detected