MCPcopy Create free account
hub / github.com/facebook/CacheLib / getNumThreads

Function getNumThreads

cachelib/cachebench/runner/IntegrationStressor.cpp:29–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27namespace cachebench {
28namespace {
29uint64_t getNumThreads(const StressorConfig& config) {
30 return config.numThreads > 0 ? config.numThreads
31 : folly::available_concurrency();
32}
33} // namespace
34
35const uint32_t HighRefcountStressor::kNumThreads;

Callers 2

CachelibMapStressorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected