MCPcopy Create free account
hub / github.com/cameron314/concurrentqueue / adjustForThreads

Function adjustForThreads

benchmarks/benchmarks.cpp:307–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305}
306
307counter_t adjustForThreads(counter_t suggestedOps, int nthreads)
308{
309 return std::max((counter_t)(suggestedOps / std::pow(2, std::sqrt((nthreads - 1) * 3))), suggestedOps / 16);
310}
311
312
313template<typename TQueue, typename item_t>

Callers 1

Calls 1

maxFunction · 0.85

Tested by

no test coverage detected