| 337 | } |
| 338 | |
| 339 | unsigned int CapWorkerCount(unsigned int workers, unsigned int cap) |
| 340 | { |
| 341 | if (workers == 0 || cap == 0 || cap >= workers) |
| 342 | { |
| 343 | return workers; |
| 344 | } |
| 345 | return cap; |
| 346 | } |
| 347 | |
| 348 | unsigned int GetCpuAccNumberOfThreads(const ModelOptions& modelOptions) |
| 349 | { |
no outgoing calls
no test coverage detected