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:
parent
14bb1812b1
commit
6fb69a2136
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user