summaryrefslogtreecommitdiff
path: root/include/lldb/Host/linux/HostThreadLinux.h
diff options
context:
space:
mode:
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 0000000000000..9091f41dae473
--- /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