[vlc-devel] [PATCH] thread: Simplify vlc_GetCPUCount / add FreeBSD/NetBSD support
remi at remlab.net
Sun Jan 29 09:19:03 CET 2012
Le dimanche 29 janvier 2012 00:05:37 Brad, vous avez écrit :
> Looking at the current vlc_GetCPUCount() function this can be simplified.
> The sysconf(3) variable is available for OS X and OpenBSD. The change as
> is also adds FreeBSD and NetBSD support to vlc_GetCPUCount().
Technically, glibc has it as well - not jus Android. I don't know if
sched_getaffinity() can include offline processors. However,
sched_getaffinity() does not include processors that the process was somehow
configured not to use, which sysconf() seems to fail to take into account.
More information about the vlc-devel