Commit 9ac8855b by Ben Clayton

Update Marl to 5c6c15322

Changes: 5c6c1532220 Fix Android build Commands: ./third_party/update-marl.sh --squash Bug: b/140546382 Change-Id: Ibb733d85c64a183f4fbe1a803d3d569a37e858a1
parents 47da2d37 9d009d0d
......@@ -51,7 +51,8 @@ class Thread {
struct Affinity {
// supported is true if marl supports controlling thread affinity for this
// platform.
#if defined(_WIN32) || defined(__linux__) || defined(__FreeBSD__)
#if defined(_WIN32) || (defined(__linux__) && !defined(__ANDROID__)) || \
defined(__FreeBSD__)
static constexpr bool supported = true;
#else
static constexpr bool supported = false;
......
......@@ -145,7 +145,7 @@ Thread::Affinity Thread::Affinity::all(
}
}
}
#elif defined(__linux__)
#elif defined(__linux__) && !defined(__ANDROID__)
auto thread = pthread_self();
cpu_set_t cpuset;
CPU_ZERO(&cpuset);
......@@ -374,7 +374,7 @@ class Thread::Impl {
return;
}
#if defined(__linux__)
#if defined(__linux__) && !defined(__ANDROID__)
cpu_set_t cpuset;
CPU_ZERO(&cpuset);
for (size_t i = 0; i < count; i++) {
......
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