mirror of
https://github.com/opencv/opencv.git
synced 2025-07-24 14:06:27 +08:00
Merge pull request #16779 from saskatchewancatch:issue-16777
* Fixes issue 16777. * core: update Concurrency getNumThreads()
This commit is contained in:
parent
1c2ed2876f
commit
3b2e409fa7
@ -618,9 +618,9 @@ int getNumThreads(void)
|
||||
|
||||
#elif defined HAVE_CONCURRENCY
|
||||
|
||||
return 1 + (pplScheduler == 0
|
||||
return (pplScheduler == 0)
|
||||
? Concurrency::CurrentScheduler::Get()->GetNumberOfVirtualProcessors()
|
||||
: pplScheduler->GetNumberOfVirtualProcessors());
|
||||
: (1 + pplScheduler->GetNumberOfVirtualProcessors());
|
||||
|
||||
#elif defined HAVE_PTHREADS_PF
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user