Commit 046f33df authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Jean-Baptiste Kempf

thread: Implement vlc_GetCPUCount for android.

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 739f1233633c09f7095c1d53c85b65307e58b7fa)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 3ea86160
...@@ -1218,7 +1218,8 @@ unsigned vlc_GetCPUCount(void) ...@@ -1218,7 +1218,8 @@ unsigned vlc_GetCPUCount(void)
count = sysconf (_SC_NPROCESSORS_ONLN); count = sysconf (_SC_NPROCESSORS_ONLN);
free (cpulist); free (cpulist);
return count ? count : 1; return count ? count : 1;
#elif defined(__ANDROID__)
return sysconf(_SC_NPROCESSORS_CONF);
#else #else
# warning "vlc_GetCPUCount is not implemented for your platform" # warning "vlc_GetCPUCount is not implemented for your platform"
return 1; return 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment