]> git.videolan.org Git - x264.git/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)
committerJason Garrett-Glaser <jason@x264.com>
Thu, 21 Jul 2011 02:48:25 +0000 (19:48 -0700)
commit44c881766e9fcba80035e8a127bbee851cdb8584
tree5e11ebd76113c81064565a947f2b70ac53135b7a
parent7fcf1cffae45b0dd614a9b8a1b17f4d8f44a823e
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