summaryrefslogtreecommitdiffstats
path: root/include/cutils
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-03-20 13:46:28 -0700
committerDan Albert <danalbert@google.com>2015-03-23 13:01:21 -0700
commit7dfb61dcdca8ee597f23b9acc365fb140b353fff (patch)
tree9a4f01224517df3b3467d8cf4cd77a10bfffc3d8 /include/cutils
parenta5e9639cf94aad0ed88ccd1c08d43f5084432f74 (diff)
downloadsystem_core-7dfb61dcdca8ee597f23b9acc365fb140b353fff.zip
system_core-7dfb61dcdca8ee597f23b9acc365fb140b353fff.tar.gz
system_core-7dfb61dcdca8ee597f23b9acc365fb140b353fff.tar.bz2
Move gettid() into libcutils.
Change-Id: Ic8a15036833e6d129b7998d954b804be391de399
Diffstat (limited to 'include/cutils')
-rw-r--r--include/cutils/threads.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/cutils/threads.h b/include/cutils/threads.h
index ade9a0c..bb9fdb8 100644
--- a/include/cutils/threads.h
+++ b/include/cutils/threads.h
@@ -37,9 +37,10 @@ typedef struct {
pthread_mutex_t lock;
int has_tls;
pthread_key_t tls;
-
} thread_store_t;
+extern pid_t gettid();
+
#define THREAD_STORE_INITIALIZER { PTHREAD_MUTEX_INITIALIZER, 0, 0 }
#else // !defined(_WIN32)
@@ -51,7 +52,6 @@ typedef struct {
int has_tls;
DWORD tls;
CRITICAL_SECTION lock;
-
} thread_store_t;
#define THREAD_STORE_INITIALIZER { 0, 0, 0, {0, 0, 0, 0, 0, 0} }