[Lldb-commits] [PATCH] D13019: Do not use pthread_{get, set}name_np() if we don't have GLIBC.

Vasileios Kalintiris via lldb-commits lldb-commits at lists.llvm.org
Tue Sep 22 04:01:54 PDT 2015


vkalintiris updated this revision to Diff 35357.
vkalintiris added a comment.
Herald added subscribers: srhines, danalbert, tberghammer.

Addressed reviewers comments.


http://reviews.llvm.org/D13019

Files:
  source/Host/linux/HostThreadLinux.cpp

Index: source/Host/linux/HostThreadLinux.cpp
===================================================================
--- source/Host/linux/HostThreadLinux.cpp
+++ source/Host/linux/HostThreadLinux.cpp
@@ -30,7 +30,12 @@
 void
 HostThreadLinux::SetName(lldb::thread_t thread, llvm::StringRef name)
 {
+#if (defined(__GLIBC__) && defined(_GNU_SOURCE)) || defined(__ANDROID__)
     ::pthread_setname_np(thread, name.data());
+#else
+    (void) thread;
+    (void) name;
+#endif
 }
 
 void


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13019.35357.patch
Type: text/x-patch
Size: 482 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150922/3c1cab45/attachment.bin>


More information about the lldb-commits mailing list