MCPcopy Create free account
hub / github.com/IENT/YUView / getOptimalThreadCount

Function getOptimalThreadCount

YUViewLib/src/common/Functions.cpp:51–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49{
50
51unsigned int getOptimalThreadCount()
52{
53 int nrThreads = QThread::idealThreadCount() - 1;
54 if (nrThreads > 0)
55 return (unsigned int)nrThreads;
56 else
57 return 1;
58}
59
60unsigned int systemMemorySizeInMB()
61{

Callers 4

SettingsDialogMethod · 0.85
performanceTestMethod · 0.85
updateSettingsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected