diff options
author | Elliott Hughes <enh@google.com> | 2012-01-23 18:48:51 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2012-01-23 18:48:51 -0800 |
commit | cf044318c5638df0c400b731e94fab948ebd5ccb (patch) | |
tree | a4733cdac314bc21530ef64df77581efade813d8 /src/mutex.cc | |
parent | a0cb1204543934b1f4975025cd6047eb71dc6429 (diff) | |
download | art-cf044318c5638df0c400b731e94fab948ebd5ccb.zip art-cf044318c5638df0c400b731e94fab948ebd5ccb.tar.gz art-cf044318c5638df0c400b731e94fab948ebd5ccb.tar.bz2 |
Work around the lack of gettid(3) on Mac OS.
This just disables the checks that need a tid.
Change-Id: I5fb39db9e36f896cbfa55dffb974677dc0f033e2
Diffstat (limited to 'src/mutex.cc')
-rw-r--r-- | src/mutex.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mutex.cc b/src/mutex.cc index d41c6cb..fca31b6 100644 --- a/src/mutex.cc +++ b/src/mutex.cc @@ -76,6 +76,9 @@ pid_t Mutex::GetOwner() { // ...other stuff we don't care about. }; return reinterpret_cast<glibc_pthread_t*>(&mutex_)->owner; +#elif defined(__APPLE__) + // We don't know a way to implement this for Mac OS. + return 0; #else UNIMPLEMENTED(FATAL); return 0; @@ -93,6 +96,8 @@ void Mutex::ClearOwner() { // ...other stuff we don't care about. }; reinterpret_cast<glibc_pthread_t*>(&mutex_)->owner = 0; +#elif defined(__APPLE__) + // We don't know a way to implement this for Mac OS. #else UNIMPLEMENTED(FATAL); #endif |