diff options
author | Siva Velusamy <vsiva@google.com> | 2015-08-28 16:37:29 -0700 |
---|---|---|
committer | Siva Velusamy <vsiva@google.com> | 2015-08-31 07:52:52 -0700 |
commit | 49ee7cf9a10f66ffa9a3490c69db5fa46e0a966b (patch) | |
tree | 09ba121030900c5f47ccb99357d13f3b2841f24c /adb/usb_windows.cpp | |
parent | 9f07f87908f072d63d8bb9ded91616af8d3edbb4 (diff) | |
download | core-49ee7cf9a10f66ffa9a3490c69db5fa46e0a966b.tar.gz core-49ee7cf9a10f66ffa9a3490c69db5fa46e0a966b.tar.bz2 core-49ee7cf9a10f66ffa9a3490c69db5fa46e0a966b.zip |
adb: set thread names (linux & mac)
Bug: 23423333
Change-Id: I0069f32ddbae2a10fb130064f721facf45b2cc09
Diffstat (limited to 'adb/usb_windows.cpp')
-rw-r--r-- | adb/usb_windows.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/adb/usb_windows.cpp b/adb/usb_windows.cpp index b8cc5cf93..ab3647527 100644 --- a/adb/usb_windows.cpp +++ b/adb/usb_windows.cpp @@ -171,6 +171,7 @@ int register_new_device(usb_handle* handle) { } void* device_poll_thread(void* unused) { + adb_thread_setname("Device Poll"); D("Created device thread\n"); while(1) { @@ -208,6 +209,7 @@ static void* _power_notification_thread(void* unused) { // of a developer's interactive session, a window message pump is more // appropriate. D("Created power notification thread\n"); + adb_thread_setname("Power Notifier"); // Window class names are process specific. static const WCHAR kPowerNotificationWindowClassName[] = |