[vlc-commits] Android: use number of available processors
Jean-Baptiste Kempf
git at videolan.org
Tue Mar 28 15:39:44 CEST 2017
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Mar 27 22:16:23 2017 +0200| [2f5ee597083e00a544a6aabbbd65ab56874b380e] | committer: Jean-Baptiste Kempf
Android: use number of available processors
_ONLN is the currently online number of processors, while _CONF
is the number of configured processors, some of which can be disabled.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2f5ee597083e00a544a6aabbbd65ab56874b380e
---
src/android/thread.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/android/thread.c b/src/android/thread.c
index fcffd7a..ee72cbb 100644
--- a/src/android/thread.c
+++ b/src/android/thread.c
@@ -417,5 +417,5 @@ mtime_t mdate (void)
unsigned vlc_GetCPUCount(void)
{
- return sysconf(_SC_NPROCESSORS_CONF);
+ return sysconf(_SC_NPROCESSORS_ONLN);
}
More information about the vlc-commits
mailing list