summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/tools/lldb/source/Host/netbsd/HostThreadNetBSD.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm/tools/lldb/source/Host/netbsd/HostThreadNetBSD.cpp')
-rw-r--r--contrib/llvm/tools/lldb/source/Host/netbsd/HostThreadNetBSD.cpp27
1 files changed, 10 insertions, 17 deletions
diff --git a/contrib/llvm/tools/lldb/source/Host/netbsd/HostThreadNetBSD.cpp b/contrib/llvm/tools/lldb/source/Host/netbsd/HostThreadNetBSD.cpp
index 06bc502..e8c106b 100644
--- a/contrib/llvm/tools/lldb/source/Host/netbsd/HostThreadNetBSD.cpp
+++ b/contrib/llvm/tools/lldb/source/Host/netbsd/HostThreadNetBSD.cpp
@@ -24,27 +24,20 @@
using namespace lldb_private;
-HostThreadNetBSD::HostThreadNetBSD()
-{
-}
+HostThreadNetBSD::HostThreadNetBSD() {}
HostThreadNetBSD::HostThreadNetBSD(lldb::thread_t thread)
- : HostThreadPosix(thread)
-{
-}
+ : HostThreadPosix(thread) {}
-void
-HostThreadNetBSD::SetName(lldb::thread_t thread, llvm::StringRef &name)
-{
- ::pthread_setname_np(thread, "%s", const_cast<char*>(name.data()));
+void HostThreadNetBSD::SetName(lldb::thread_t thread, llvm::StringRef &name) {
+ ::pthread_setname_np(thread, "%s", const_cast<char *>(name.data()));
}
-void
-HostThreadNetBSD::GetName(lldb::thread_t thread, llvm::SmallVectorImpl<char> &name)
-{
- char buf[PTHREAD_MAX_NAMELEN_NP];
- ::pthread_getname_np(thread, buf, PTHREAD_MAX_NAMELEN_NP);
+void HostThreadNetBSD::GetName(lldb::thread_t thread,
+ llvm::SmallVectorImpl<char> &name) {
+ char buf[PTHREAD_MAX_NAMELEN_NP];
+ ::pthread_getname_np(thread, buf, PTHREAD_MAX_NAMELEN_NP);
- name.clear();
- name.append(buf, buf + strlen(buf));
+ name.clear();
+ name.append(buf, buf + strlen(buf));
}
OpenPOWER on IntegriCloud