Runtime detection of available processor cores.
authorAttila Nagy <attilanagy@google.com>
Fri, 25 Mar 2011 10:53:03 +0000 (12:53 +0200)
committerAttila Nagy <attilanagy@google.com>
Thu, 31 Mar 2011 07:23:01 +0000 (10:23 +0300)
commit297b27655eaf4a0cfd097b2ae94add4b19fed9eb
tree42297d759d79f59bc95ca3d44a19b6d449a2627b
parentbeaafefcf166950aed700a63f5d40f8b87cc736a
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
build/make/configure.sh
configure
vp8/common/generic/systemdependent.c
vp8/common/onyxc_int.h
vp8/decoder/threading.c
vp8/encoder/ethreading.c
vp8/encoder/onyx_int.h