We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 234236e commit c597619Copy full SHA for c597619
src/common/threading_utils.cc
@@ -130,7 +130,7 @@ std::int32_t OmpGetNumThreads(std::int32_t n_threads) noexcept(true) {
130
}
131
132
void NameThread(std::thread* t, StringView name) {
133
-#if defined(__linux__)
+#if defined(__linux__) && (!defined(__ANDROID__) || __ANDROID_API__ >= 26)
134
auto handle = t->native_handle();
135
char old[16];
136
auto ret = pthread_getname_np(handle, old, 16);
0 commit comments