summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2011-12-21 01:18:01 +0100
committerJanne Grunau <janne-libav@jannau.net>2011-12-22 21:50:07 +0100
commitea4d5f48373ab856e01a3cf05426db6e823e01d1 (patch)
tree0821c1f58e1ff129e798e959f758ae3f11fff81d /configure
parentf77f640b3035d357a6c6ffcea243c7ea0d8ebc67 (diff)
linux: use number of CPUs as automatic thread count
Use sched_getaffinity to determine the number of logical CPUs. Limits the number of threads to 16 since slice threading of H.264 seems to be buggy with more than 16 threads.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure b/configure
index 8e2e08b95f..b5ee3b5bb2 100755
--- a/configure
+++ b/configure
@@ -1117,6 +1117,7 @@ HAVE_LIST="
posix_memalign
round
roundf
+ sched_getaffinity
sdl
sdl_video_size
setmode
@@ -2853,6 +2854,7 @@ check_func setrlimit
check_func strerror_r
check_func strptime
check_func strtok_r
+check_func sched_getaffinity
check_func_headers io.h setmode
check_func_headers lzo/lzo1x.h lzo1x_999_compress
check_lib2 "windows.h psapi.h" GetProcessMemoryInfo -lpsapi