adb: set thread names (linux & mac)
Bug: 23423333
Change-Id: I0069f32ddbae2a10fb130064f721facf45b2cc09
diff --git a/adb/transport.cpp b/adb/transport.cpp
index 6ce5d7f..bd3bf16 100644
--- a/adb/transport.cpp
+++ b/adb/transport.cpp
@@ -193,6 +193,7 @@
atransport *t = reinterpret_cast<atransport*>(_t);
apacket *p;
+ adb_thread_setname("to transport");
D("%s: starting transport output thread on fd %d, SYNC online (%d)\n",
t->serial, t->fd, t->sync_token + 1);
p = get_apacket();
@@ -249,6 +250,7 @@
apacket *p;
int active = 0;
+ adb_thread_setname("from transport");
D("%s: starting transport input thread, reading from fd %d\n",
t->serial, t->fd);