diff options
author | Janne Grunau <janne-libav@jannau.net> | 2011-12-21 01:18:01 +0100 |
---|---|---|
committer | Janne Grunau <janne-libav@jannau.net> | 2011-12-22 21:50:07 +0100 |
commit | ea4d5f48373ab856e01a3cf05426db6e823e01d1 (patch) | |
tree | 0821c1f58e1ff129e798e959f758ae3f11fff81d /configure | |
parent | f77f640b3035d357a6c6ffcea243c7ea0d8ebc67 (diff) | |
download | ffmpeg-ea4d5f48373ab856e01a3cf05426db6e823e01d1.tar.gz |
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-x | configure | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |