From 8a5d90dbc5d6effc886a85c2de7ca9ad8981b062 Mon Sep 17 00:00:00 2001 From: zcheng Date: Wed, 7 Nov 2018 14:35:38 -0800 Subject: [PATCH] fix anroid build issue by remove the crossplt name space before android parameters --- Release/src/pplx/threadpool.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Release/src/pplx/threadpool.cpp b/Release/src/pplx/threadpool.cpp index b7a1f3e7f4..1c28cca8f7 100644 --- a/Release/src/pplx/threadpool.cpp +++ b/Release/src/pplx/threadpool.cpp @@ -84,7 +84,7 @@ struct threadpool_impl final : crossplat::threadpool #if defined(__ANDROID__) static void detach_from_java(void*) { - crossplat::JVM.load()->DetachCurrentThread(); + JVM.load()->DetachCurrentThread(); } #endif // __ANDROID__ @@ -92,7 +92,7 @@ struct threadpool_impl final : crossplat::threadpool { #if defined(__ANDROID__) // Calling get_jvm_env() here forces the thread to be attached. - crossplat::get_jvm_env(); + get_jvm_env(); pthread_cleanup_push(detach_from_java, nullptr); #endif // __ANDROID__ threadpool_impl* _this = reinterpret_cast(arg); @@ -197,7 +197,7 @@ void threadpool::initialize_with_threads(size_t num_threads) #if defined(__ANDROID__) void cpprest_init(JavaVM* vm) { - crossplat::JVM = vm; + JVM = vm; } #endif