summaryrefslogtreecommitdiffstats
path: root/adb/sysdeps.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-12-10 00:10:05 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-12-10 00:10:05 +0000
commit173310a27c1b58034bf47e08e58942137583fea8 (patch)
tree8c46aa270cb85a52aaf458a731dd0cb5bd65e18d /adb/sysdeps.h
parent3e16e2d6195e112a2bfe2f958e1cfec2bd109a1c (diff)
parentcbf0267f5b508f6933631e661a5be86f0bd89ed1 (diff)
downloadsystem_core-173310a27c1b58034bf47e08e58942137583fea8.zip
system_core-173310a27c1b58034bf47e08e58942137583fea8.tar.gz
system_core-173310a27c1b58034bf47e08e58942137583fea8.tar.bz2
Merge "Add more debug information."
Diffstat (limited to 'adb/sysdeps.h')
-rw-r--r--adb/sysdeps.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/adb/sysdeps.h b/adb/sysdeps.h
index cc1f839..22f44ce 100644
--- a/adb/sysdeps.h
+++ b/adb/sysdeps.h
@@ -77,6 +77,11 @@ static __inline__ int adb_thread_create( adb_thread_t *thread, adb_thread_func
return 0;
}
+static __inline__ unsigned long adb_thread_id()
+{
+ return GetCurrentThreadId();
+}
+
static __inline__ void close_on_exec(int fd)
{
/* nothing really */
@@ -516,6 +521,12 @@ static __inline__ char* adb_strtok_r(char *str, const char *delim, char **savep
{
return strtok_r(str, delim, saveptr);
}
+
+static __inline__ unsigned long adb_thread_id()
+{
+ return pthread_self();
+}
+
#undef strtok_r
#define strtok_r ___xxx_strtok_r