]> granicus.if.org Git - libx264/commit
Linux x264_cpu_num_processors(): use glibc macros
authorRafaël Carré <rafael.carre@gmail.com>
Fri, 15 Jul 2011 01:51:43 +0000 (18:51 -0700)
committerFiona Glaser <fiona@x264.com>
Thu, 21 Jul 2011 02:48:25 +0000 (19:48 -0700)
commitf7e6610ba12319d68833526676b16879aaff415c
tree6dc2728f289725dd886ba438d47ed7c5953861a6
parent670d81811866e9e5045d25c5def5ba2b9f06d2ac
Linux x264_cpu_num_processors(): use glibc macros
The cpu_set_t structure is considered opaque.
Also handle sched_getaffinity() error case if "cpusetsize is smaller than the size of the affinity mask used by the kernel."
common/cpu.c