Fix OS::GetCurrentThreadId to work when building Android on Mac.

The Mac version of GetCurrentThreadId should be used when building the host
build of V8 on Android for Mac.

Review URL: https://codereview.chromium.org/799943003

Cr-Commit-Position: refs/heads/master@{#25805}
This commit is contained in:
rmcilroy 2014-12-12 09:56:46 -08:00 committed by Commit bot
parent 14bb1812b1
commit 6fb69a2136

View File

@ -254,7 +254,7 @@ int OS::GetCurrentProcessId() {
int OS::GetCurrentThreadId() {
#if V8_OS_MACOSX
#if V8_OS_MACOSX || (V8_OS_ANDROID && defined(__APPLE__))
return static_cast<int>(pthread_mach_thread_np(pthread_self()));
#elif V8_OS_LINUX
return static_cast<int>(syscall(__NR_gettid));