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

Function initBenchmarkThreads

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

Source from the content-addressed store, hash-verified

960}
961
962static void initBenchmarkThreads() {
963 int i;
964 if (config.threads) freeBenchmarkThreads();
965 config.threads = zmalloc(config.num_threads * sizeof(benchmarkThread*));
966 for (i = 0; i < config.num_threads; i++) {
967 benchmarkThread *thread = createBenchmarkThread(i);
968 config.threads[i] = thread;
969 }
970}
971
972static void startBenchmarkThreads() {
973 int i;

Callers 2

benchmarkFunction · 0.85
mainFunction · 0.85

Calls 3

freeBenchmarkThreadsFunction · 0.85
zmallocFunction · 0.85
createBenchmarkThreadFunction · 0.85

Tested by

no test coverage detected