summaryrefslogtreecommitdiff
path: root/libutils/Threads.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-09-12 10:19:08 -0700
committerElliott Hughes <enh@google.com>2014-09-12 10:19:08 -0700
commit7bf5f209cec9fcf5f6eb744bcc05e4f97a37648a (patch)
treeb749b288a64393ea8bd6fca5c9ecaefbb2ca2c23 /libutils/Threads.cpp
parentf9b9693bab9d6d614ac0da12734dca7bab487c44 (diff)
Move libutils over to pthread_gettid_np.
Bug: 17476168 Change-Id: I934d93a023eb00e036ed3cee8c52efaeb17b8915
Diffstat (limited to 'libutils/Threads.cpp')
-rw-r--r--libutils/Threads.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/libutils/Threads.cpp b/libutils/Threads.cpp
index 03fde978b..9bcd06330 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;