Thread::getTid returns pid_t gettid() after run

This is needed when the parent or any other thread besides the child
needs access to the child's kernel tid.

Change-Id: Ib148505913eb78314cfd76657c30d7b20663dffd
This commit is contained in:
Glenn Kasten
2011-07-11 15:59:22 -07:00
parent c83a666fe6
commit 06a864413f
3 changed files with 51 additions and 7 deletions

View File

@@ -98,7 +98,8 @@ endif
LOCAL_C_INCLUDES += \
external/zlib \
external/icu4c/common
external/icu4c/common \
bionic/libc/private
LOCAL_LDLIBS += -lpthread
@@ -114,7 +115,10 @@ include $(BUILD_SHARED_LIBRARY)
ifeq ($(TARGET_OS),linux)
include $(CLEAR_VARS)
LOCAL_C_INCLUDES += external/zlib external/icu4c/common
LOCAL_C_INCLUDES += \
external/zlib \
external/icu4c/common \
bionic/libc/private
LOCAL_LDLIBS := -lrt -ldl -lpthread
LOCAL_MODULE := libutils
LOCAL_SRC_FILES := $(commonSources) BackupData.cpp BackupHelpers.cpp