]> git.sesse.net Git - vlc/commit
thread: Simplify vlc_GetCPUCount / add FreeBSD/NetBSD support
authorBrad Smith <brad@comstyle.com>
Sat, 28 Jan 2012 22:05:37 +0000 (17:05 -0500)
committerRafaël Carré <funman@videolan.org>
Sun, 29 Jan 2012 01:20:04 +0000 (20:20 -0500)
commit3a50918d89ebd66d43af99b8750fe8a1558f8b92
treece28d93f0777655cfa9ed8f6fe15b8a0f72dd456
parent8932d7afe7ceea242d9ddd5776e46296ab391671
thread: Simplify vlc_GetCPUCount / add FreeBSD/NetBSD support

Looking at the current vlc_GetCPUCount() function this can be simplified.
The sysconf(4) variable _SC_NPROCESSORS_CONF is available for OS X and OpenBSD.
The change as is also adds FreeBSD and NetBSD support to vlc_GetCPUCount().

Signed-off-by: Rafaël Carré <funman@videolan.org>
src/posix/thread.c