aboutsummaryrefslogtreecommitdiff
path: root/include/lldb/Host/linux/HostThreadLinux.h
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2016-01-06 20:12:03 +0000
committerDimitry Andric <dim@FreeBSD.org>2016-01-06 20:12:03 +0000
commit9e6d35490a6542f9c97607f93c2ef8ca8e03cbcc (patch)
treedd2a1ddf0476664c2b823409c36cbccd52662ca7 /include/lldb/Host/linux/HostThreadLinux.h
parent3bd2e91faeb9eeec1aae82c64a3253afff551cfd (diff)
Notes
Diffstat (limited to 'include/lldb/Host/linux/HostThreadLinux.h')
-rw-r--r--include/lldb/Host/linux/HostThreadLinux.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/include/lldb/Host/linux/HostThreadLinux.h b/include/lldb/Host/linux/HostThreadLinux.h
new file mode 100644
index 000000000000..9091f41dae47
--- /dev/null
+++ b/include/lldb/Host/linux/HostThreadLinux.h
@@ -0,0 +1,32 @@
+//===-- HostThreadLinux.h ---------------------------------------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef lldb_Host_linux_HostThreadLinux_h_
+#define lldb_Host_linux_HostThreadLinux_h_
+
+#include "lldb/Host/posix/HostThreadPosix.h"
+
+#include "llvm/ADT/StringRef.h"
+#include "llvm/ADT/SmallString.h"
+
+namespace lldb_private
+{
+
+class HostThreadLinux : public HostThreadPosix
+{
+ public:
+ HostThreadLinux();
+ HostThreadLinux(lldb::thread_t thread);
+
+ static void SetName(lldb::thread_t thread, llvm::StringRef name);
+ static void GetName(lldb::thread_t thread, llvm::SmallVectorImpl<char> &name);
+};
+}
+
+#endif