diff options
author | Elliott Hughes <enh@google.com> | 2014-09-12 17:22:57 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-09-12 17:22:58 +0000 |
commit | 082a52b57fb6d93186338062c179ffadd871f3c6 (patch) | |
tree | b749b288a64393ea8bd6fca5c9ecaefbb2ca2c23 /libutils | |
parent | f9b9693bab9d6d614ac0da12734dca7bab487c44 (diff) | |
parent | 7bf5f209cec9fcf5f6eb744bcc05e4f97a37648a (diff) | |
download | system_core-082a52b57fb6d93186338062c179ffadd871f3c6.zip system_core-082a52b57fb6d93186338062c179ffadd871f3c6.tar.gz system_core-082a52b57fb6d93186338062c179ffadd871f3c6.tar.bz2 |
Merge "Move libutils over to pthread_gettid_np."
Diffstat (limited to 'libutils')
-rw-r--r-- | libutils/Android.mk | 3 | ||||
-rw-r--r-- | libutils/Threads.cpp | 5 |
2 files changed, 2 insertions, 6 deletions
diff --git a/libutils/Android.mk b/libutils/Android.mk index 0c8625c..b55e635 100644 --- a/libutils/Android.mk +++ b/libutils/Android.mk @@ -93,8 +93,7 @@ endif LOCAL_CFLAGS += -Werror LOCAL_C_INCLUDES += \ - bionic/libc \ - external/zlib + external/zlib LOCAL_STATIC_LIBRARIES := \ libcutils diff --git a/libutils/Threads.cpp b/libutils/Threads.cpp index 03fde97..9bcd063 100644 --- a/libutils/Threads.cpp +++ b/libutils/Threads.cpp @@ -28,9 +28,6 @@ # include <pthread.h> # include <sched.h> # include <sys/resource.h> -#ifdef HAVE_ANDROID_OS -# include <private/bionic_pthread.h> -#endif #elif defined(HAVE_WIN32_THREADS) # include <windows.h> # include <stdint.h> @@ -855,7 +852,7 @@ pid_t Thread::getTid() const pid_t tid; if (mRunning) { pthread_t pthread = android_thread_id_t_to_pthread(mThread); - tid = __pthread_gettid(pthread); + tid = pthread_gettid_np(pthread); } else { ALOGW("Thread (this=%p): getTid() is undefined before run()", this); tid = -1; |