am 082a52b5: Merge "Move libutils over to pthread_gettid_np."

* commit '082a52b57fb6d93186338062c179ffadd871f3c6':
  Move libutils over to pthread_gettid_np.
This commit is contained in:
Elliott Hughes 2014-09-12 18:48:59 +00:00 committed by Android Git Automerger
commit e4bf208ce8
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;