Move libutils over to pthread_gettid_np.

Bug: 17476168
Change-Id: I934d93a023eb00e036ed3cee8c52efaeb17b8915
This commit is contained in:
Elliott Hughes 2014-09-12 10:19:08 -07:00
parent f9b9693bab
commit 7bf5f209ce
2 changed files with 2 additions and 6 deletions

View File

@ -93,8 +93,7 @@ endif
LOCAL_CFLAGS += -Werror
LOCAL_C_INCLUDES += \
bionic/libc \
external/zlib
external/zlib
LOCAL_STATIC_LIBRARIES := \
libcutils

View File

@ -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;