Disable SetAffinity on android
CPU_ macros are only available in android source tree, not in NDK. Disable it for now. Review URL: https://webrtc-codereview.appspot.com/392008 git-svn-id: http://webrtc.googlecode.com/svn/trunk@1697 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
05e0601160
commit
0a272eb44b
@ -195,7 +195,9 @@ bool ThreadPosix::Start(unsigned int& /*threadID*/)
|
||||
return true;
|
||||
}
|
||||
|
||||
#if (defined(WEBRTC_LINUX) || defined(WEBRTC_ANDROID))
|
||||
// CPU_ZERO and CPU_SET are not available in NDK r7, so disable
|
||||
// SetAffinity on Android for now.
|
||||
#if (defined(WEBRTC_LINUX) && (!defined(WEBRTC_ANDROID)))
|
||||
bool ThreadPosix::SetAffinity(const int* processorNumbers,
|
||||
const unsigned int amountOfProcessors) {
|
||||
if (!processorNumbers || (amountOfProcessors == 0)) {
|
||||
|
Loading…
Reference in New Issue
Block a user