commit | 297b27655eaf4a0cfd097b2ae94add4b19fed9eb | [log] [tgz] |
---|---|---|
author | Attila Nagy <attilanagy@google.com> | Fri Mar 25 12:53:03 2011 +0200 |
committer | Attila Nagy <attilanagy@google.com> | Thu Mar 31 10:23:01 2011 +0300 |
tree | 42297d759d79f59bc95ca3d44a19b6d449a2627b | |
parent | beaafefcf166950aed700a63f5d40f8b87cc736a [diff] |
Runtime detection of available processor cores. Detect the number of available cores and limit the thread allocation accordingly. On decoder side limit the number of threads to the max number of token partition. Core detetction works on Windows and Posix platforms, which define _SC_NPROCESSORS_ONLN or _SC_NPROC_ONLN. Change-Id: I76cbe37c18d3b8035e508b7a1795577674efc078