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 739f1233)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 3ea86160
......@@ -1218,7 +1218,8 @@ unsigned vlc_GetCPUCount(void)
count = sysconf (_SC_NPROCESSORS_ONLN);
free (cpulist);
return count ? count : 1;
#elif defined(__ANDROID__)
return sysconf(_SC_NPROCESSORS_CONF);
#else
# warning "vlc_GetCPUCount is not implemented for your platform"
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